Skip to content

Instantly share code, notes, and snippets.

@Manish-Kumar-Sadhu
Last active November 20, 2020 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Manish-Kumar-Sadhu/2319ebbafe3081b11e6b8b8a6ce9a9d9 to your computer and use it in GitHub Desktop.
Save Manish-Kumar-Sadhu/2319ebbafe3081b11e6b8b8a6ce9a9d9 to your computer and use it in GitHub Desktop.
Advance Git Commands
Merge master branch to feature branch : git merge feature master
Changing a commit message : git commit --amend
Undo commit and keep all files staged: git reset --soft HEAD~;
Undo commit and unstage all files: git reset HEAD~;
Undo the commit and completely remove all changes: git reset --hard HEAD~;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment