outrunthewolf
outrunthewolf

Reputation: 383

Whats the difference between these git commands?

Can anyone tell me the difference between:

git commit -a -m

and

git commit -am 

Upvotes: 1

Views: 116

Answers (3)

Philip Oakley
Philip Oakley

Reputation: 14061

They can be combined as discussed in the gitcli [command line interface] help page git help cli, and in the git rev-parse --help page

Upvotes: 0

Gareth
Gareth

Reputation: 138012

It's a pretty standard *NIX convention that single-dash arguments which don't require any parameters, can be combined into a single argument

Upvotes: 2

laalto
laalto

Reputation: 152787

The latter requires two keystrokes less. Functionally they are equivalent.

Upvotes: 4

Related Questions