Created
August 1, 2017 18:58
-
-
Save seangeleno/5cd8300d672c8b519d0e5bd260ea66e1 to your computer and use it in GitHub Desktop.
aliases
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 aliases | |
git config --global alias.s status | |
git config --global alias.f fetch | |
git config --global alias.p pull | |
git config --global alias.c checkout | |
git config --global alias.m merge | |
git config --global alias.r rebase | |
git config --global alias.b branch | |
git config --global alias.o checkout | |
# bash aliases | |
echo 'alias ba="curl -L https://gist.github.com/rebootd/ad5bcac719e97f7905bd/raw | ruby"' > ~/.alias | |
echo 'alias gs="git status"' >> ~/.alias | |
echo 'alias gf="git fetch"' >> ~/.alias | |
echo 'alias gp="git push"' >> ~/.alias | |
echo 'alias gc="git commit"' >> ~/.alias | |
echo 'alias gm="git merge"' >> ~/.alias | |
echo 'alias gr="git rebase"' >> ~/.alias | |
echo 'alias gb="git branch"' >> ~/.alias | |
echo 'alias go="git checkout"' >> ~/.alias | |
echo "alias gs='git status '" >> ~/.alias | |
echo "alias ga='git add '" >> ~/.alias | |
echo "alias gb='git branch '" >> ~/.alias | |
echo "alias gc='git commit'" >> ~/.alias | |
echo "alias gd='git diff'" >> ~/.alias | |
echo "alias go='git checkout '" >> ~/.alias | |
echo "alias gk='gitk --all&'" >> ~/.alias | |
echo "alias gx='gitx --all'" >> ~/.alias | |
echo "alias got='git '" >> ~/.alias | |
echo "alias get='git '" >> ~/.alias | |
# make sure aliases are loaded in bash_profile | |
#if grep -Fxq "source ~/.alias" ~/.bash_profile then | |
# code if found | |
# echo 'alias already in profile' | |
#else | |
# code if not found | |
# echo 'source ~/.alias' >> ~/.bash_profile | |
#fi | |
# load aliases now | |
source ~/.alias |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment