Last active
January 31, 2018 10:48
-
-
Save spielhoelle/d64f5d02c4ad23b2d82e37a681d26d47 to your computer and use it in GitHub Desktop.
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
git clone https://github.com/USERNAME/REPONAME | |
git pull | |
git status | |
git commit -m "COMMIT MESSAGE" | |
git checkout -b BRANCHNAME | |
git push | |
git push --set-upstream origin BRANCHNAME (to publish branch the first time) | |
checkout last branch: | |
git checkout - | |
(also works with cd: "cd -" goes always to the last folder position) | |
git reset --hard (reset to the last commit and discard all changes) | |
git ls-remote (show all remote branches) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment