Combine git add and git status
After a git add
I always check if the correct files have been added to the index. So I always run git status
after a git add
. This function combines both:
function ga () {
git add $@ && git status
}
Why a function and not an alias? Aliases don't accept parameters.
Written by Auke Willem Oosterhoff
Related protips
2 Responses
Where to add this function?
over 1 year ago
·
@jitendravyas In your .bashrc
or .zshrc
.
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
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#