Re: how do i re-add a file?

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

 



On Tue, Apr 01, 2008 at 02:10:12PM +0300, Ittay Dror <ittayd@xxxxxxxxxx> wrote:
> I did git-rm on a file and committed. Made some changes to my sources and 
> committed. Now I want the file back. How can I do that? Related to that, 
> how do I revert my files to some past commit state so that the commits in 
> between are kept in the history?

git checkout HEAD^ -- path/to/file

Attachment: pgpgZGuMqWfMu.pgp
Description: PGP signature


[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