GIT Commands

git commit -m “my comment”

git pull

git pull origin main

git branch -r

git show-branch -r

git checkout RemoteBanchName

git pull origin RemoteBanchName

GIT remove stale branch

git branch -d -r origin/release/0.1.0
(Format: –> Origin/branch name)

git flow feature start MYFEATURE

git flow feature finish MYFEATURE

git flow feature publish MYFEATURE

git flow feature pull origin MYFEATURE

git flow feature track MYFEATURE

git switch release/V1

git flow release list

git flow release start ‘V1’

git flow release finish ‘V1’

Change git editor to Notepad++

$ git config –global core.editor “‘C:\Program Files (x86)\Notepad++\notepad++.exe’ -multiInst -notabbar -nosession -noPlugin”

Delete a feature branch

  1. Delete local branch then push it to the remote
    git branch -d feature/branch_name
    git push origin -d feature/branch_name
  2. Undo all commit — Changes locally
  3. git add .
  4. git stash
  5. git stash drop
  6. git clean -fdx
  7. ssss