Last active
August 29, 2015 14:08
-
-
Save gotomanners/0f4c92585186e6a13e85 to your computer and use it in GitHub Desktop.
Some git commands
This file contains hidden or 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 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