Created
November 16, 2017 00:21
-
-
Save yingmu52/871097009c6627c2a65ca5423bbc7fef to your computer and use it in GitHub Desktop.
setup
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
| # Setup Git | |
| git config --global alias.la '!git config -l | grep alias | cut -c 7-' | |
| git config --global alias.br 'branch -vv' | |
| git config --global alias.brd 'branch -D' | |
| git config --global alias.cm 'commit -m' | |
| git config --global alias.co 'checkout' | |
| git config --global alias.coo 'checkout -' | |
| git config --global alias.cob 'checkout -b' | |
| git config --global alias.st 'status' | |
| git config --global alias.pr 'pull --rebase upstream develop' | |
| git config --global alias.lo 'log -2' | |
| git config --global alias.rh 'reset --hard' | |
| git config --global alias.rhud 'reset --hard upstream/develop' | |
| git config --global alias.cmno 'commit --amend --no-edit' | |
| git config --global alias.pod 'push origin --delete' | |
| git config --global core.editor '/usr/bin/vim' | |
| # Setup Home Bin | |
| mkdir ~/bin | |
| cd ~/bin | |
| # Add the following two lines to .sh file and put it into /bin | |
| #!/bin/bash | |
| #! chmod +x script.sh | |
| export PATH=$(pwd):$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment