Created
November 6, 2011 00:00
-
-
Save stim371/1342228 to your computer and use it in GitHub Desktop.
typical git commands
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 config --global alias.br branch | |
$ git config --global alias.co checkout | |
$ git config --global alias.ci commit | |
$ git config --global alias.pom 'push origin master' |
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 br | |
$ git br solutions | |
$ git co solutions | |
$ git ci -m "commit message here" | |
$ git pom |
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 config --get-regexp '^alias\.' | |
alias.st status | |
alias.br branch | |
alias.co checkout | |
alias.ci commit | |
#heck, you could even alias that | |
$ git config --global alias.listalias 'config --get-regexp '^alias\.'' | |
#and call it like | |
$ git listalias | |
alias.st status | |
alias.br branch | |
alias.co checkout | |
alias.ci commit | |
alias.listalias config --get-regexp ^alias. |
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 config --global --unset alias.br | |
#to remove our alias for the "branch" command |
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 branch | |
$ git branch solutions | |
$ git checkout solutions | |
$ git commit -m "commit message here" | |
$ git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment