Skip to content

Instantly share code, notes, and snippets.

@nara-l
Last active November 30, 2021 15:38
Show Gist options
  • Save nara-l/9f52396ce83c69f9de355d7ca49e1750 to your computer and use it in GitHub Desktop.
Save nara-l/9f52396ce83c69f9de355d7ca49e1750 to your computer and use it in GitHub Desktop.
Git commands
1. Multiple branches:
https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory
2.https://stackoverflow.com/questions/42112526/how-to-compare-different-branches-in-visual-studio-code
$ git branch iss53
$ git checkout iss53
after update on iss53 - mearge changes into current release
git merge hotfix
git branch -d hotfix - delete branch
https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging
5. Undo latest local commit : git reset --soft HEAD~1
https://devconnected.com/how-to-undo-last-git-commit/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment