Created
January 3, 2018 14:06
-
-
Save avtaniket/4e90eef1c92cf8874968e3d948f3fa4c to your computer and use it in GitHub Desktop.
git helpful 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
# Replace local branch with remote branch entirely | |
git reset --hard origin/master | |
# Remove ignored files - select option as requied | |
git rm -r -f --cache node_modules | |
# Rever last commit | |
git reeset head~1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment