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
- Delete local branch then push it to the remote
git branch -d feature/branch_name
git push origin -d feature/branch_name - Undo all commit — Changes locally
- git add .
- git stash
- git stash drop
- git clean -fdx
- ssss