Re: rm and mv commands: should I use them?

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

 



[Jon Hancock <redstarling@xxxxxxxxx>]
>
> So, do I need to use git's mv and rm commands?  Can't I just rename, add, 
> and remove files using any means I like and then just ensure my "index" is 
> staged properly when I do a commit?  Additionally, is there a simple 
> procedure with git to say: "I want to version exactly what is in my working 
> tree.  If I removed something or added something, just handle it".  This is 
> sort of what "git add ." does, but "git add" doesn't handling things I 
> removed or moved, correct?

"git add ." only adds new or modified files to the index.  You can use
"git add -u ." to update the index to reflect any deleted files.

Brian
-
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]

  Powered by Linux