Last active
April 29, 2018 03:43
-
-
Save jonatasnona/3916039 to your computer and use it in GitHub Desktop.
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
# guardar comando de push para o origin depois de um 'git remote add' | |
git push -u origin master | |
# diferenças entre as alterações locais e o HEAD | |
git diff HEAD | |
# mostra apenas a diferença no staged | |
git diff --staged | |
# remove do staged | |
git reset file | |
# remove latest commit | |
git reset --hard HEAD^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment