Skip to content

Instantly share code, notes, and snippets.

@gotomanners
Last active August 29, 2015 14:08
Show Gist options
  • Save gotomanners/0f4c92585186e6a13e85 to your computer and use it in GitHub Desktop.
Save gotomanners/0f4c92585186e6a13e85 to your computer and use it in GitHub Desktop.
Some git commands
Merge changes from remote github repository to your local repository
// https://help.github.com/articles/syncing-a-fork
// http://stackoverflow.com/q/867831/184646
git remote add {name} {Public Clone URL}
git pull {name} master
git push
Undo commit not pushed
git reset --hard HEAD~NUMBER_OF_COMMITS_TO_UNDO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment