Why doesn't git commit -a track new files
- From
- Marco <netuse@lavabit.com>
- Date
- Feb 24, 2011, 10:22 UTC
- Message-ID
- <20110224112246.3f811ac2@glyph>
Hi,
I'm new to git and a bit confused about how some commands work.
git add . -- Adds everything *but* deleted files git add -A -- Adds everything git commit -a -m "whatever" -- Commits everything *but* new files
I don't understand why there's not switch (is there?) for commit to commit new and deleted files, like -A for git add? Is the only thing to do this sth like
git add -A && git commit -m "Message"
Marco