Re: Why doesn't git commit -a track new files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 24, 2011 at 11:22, Marco <netuse@xxxxxxxxxxx> wrote:
> 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"

You mean commit things you deleted, and untracked files?

That's a good question actually. It would be useful in some cases.

I've scripted around that a few times, maybe a switch for that would be useful.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]