RFH: Commiting a removed file by name

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

 



If you don't want to commit all changes at once,
it is possible to specify a list of file names at
commit time.

This works, except you want to remove a file:
$ git rm -f z4
rm 'z4'
$ git commit z4
error: pathspec 'z4' did not match any file(s) known to git.
Did you forget to 'git add'?
$ git --version
git version 1.5.3.rc7.849.g2f5f

Is there an easy solution to commit a removed file,
when you have other changes in the index?

mfg Martin Kögler
-
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