Skip to content

Instantly share code, notes, and snippets.

@avtaniket
Created January 3, 2018 14:06
Show Gist options
  • Save avtaniket/4e90eef1c92cf8874968e3d948f3fa4c to your computer and use it in GitHub Desktop.
Save avtaniket/4e90eef1c92cf8874968e3d948f3fa4c to your computer and use it in GitHub Desktop.
git helpful commands
# 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