Some handy (for me) bash aliases
Bash aliases are super handy for some of those commands you use on a regular basis.
Here are a few of my bash aliases that I find useful:
# git add all
alias gadda='git add .'
# switch to the dev root folder
alias devroot='cd #INSERT YOUR ROOT FOLDER PATH'
# ghost in the shell - git status
alias gits='git status'
# git diff
alias giff='git diff'
# git branches --verbose
alias gbv='git branch -v'
# create and checkout a new branch, takes the branch name as a arg
gcb_args(){
for branch_name in "$@"
do
git checkout -b "$branch_name"
done
}
alias gcb=gcb_args
# shows a pretty log
alias glog='git log --graph --oneline --all'
# git commit -am, takes a message as an argument
gcam_args(){
for msg in "$@"
do
git commit -am "$msg"
done
}
alias gcam=gcam_args
Written by Ezekiel Kigbo
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#