Last Updated: September 09, 2019
·
654
· joecochran

Save time with git aliases in bash profile

.bash_profile with aliases for the most common git commands can save lots of time over time.

alias gitc="git commit -m"
alias gits="git status"
alias git.="git add ."
alias gitp="git pull"
gitassumeunchanged() {
  git update-index --assume-unchanged $1
}
alias gituc="gitassumeunchanged"

1 Response
Add your response

For me it is nasty usage of Bash aliases. It is better to use Git aliases instead, i. e instead your gitassumeunchanged I have git skip (git config --global alias.skip update-index --assume-unchanged).

over 1 year ago ·