Last active
November 20, 2020 13:04
-
-
Save Manish-Kumar-Sadhu/2319ebbafe3081b11e6b8b8a6ce9a9d9 to your computer and use it in GitHub Desktop.
Advance Git Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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