Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Git commands I forget 🤷🏽‍♂️

Git commands I forget

Listed below are git commands that I forget.

Reset a single file to a specific branch

git checkout <branch> <file>
# for example
git checkout origin/master package.json

Git shorthand checkout/push

git checkout -
git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.