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"
Written by Joe Cochran
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#