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

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

 



On Sun, Jan 06, 2008 at 03:55:22PM +0800, Jon Hancock wrote:

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?

Yes.  You can use either git-rm or 'git-commit -a' to remove files.  To
rename, you can use git-mv, or you can rename the file yourself, git-add
the new name, and git-rm the old name.

There is no metadata stored with git-mv and git-rm, they just update the
tree and the index.

Dave
-
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