Last Updated: February 25, 2016
·
608
· orangetux

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.

2 Responses
Add your response

Where to add this function?

over 1 year ago ·

@jitendravyas In your .bashrc or .zshrc.

over 1 year ago ·