Last active
September 30, 2016 16:01
-
-
Save scriptonian/7626faaf30d87ea71e60c20caf7e2af7 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
1. | |
git config alias.st status | |
Create an alias 'st' so that when you type that... it executes the command git status | |
2. | |
cat .git/config | grep -A 1 "\[alias\]" | |
Once the alias is setup you can view all aliases like this: | |
3. | |
git config --global alias.st status | |
or | |
git config --global alias.st "status --short --branch" | |
will create the alias in the users home directory. note that the send command | |
creates a short version of the status output. | |
4. | |
git config --global alias.cma "commit --all -m" | |
commit all modified files using this message | |
5. | |
git config --global alias.qm '!git checkout $1;git merge @{-1}' | |
this allows you to do a quick merge to a branch... for eg git qm master. master here is the parameter 1 | |
6. | |
git config --global alias.co checkout | |
this allows you to create an alias for checkout. eg git checkout BRANCH_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment