Re: git reset --hard w/o touching every file

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

 



On Sat, Nov 01, 2008 at 04:03:50PM -0400, Edward Z. Yang wrote:

> Pierre Habouzit wrote:
> > git checkout HEAD -- <list of the files>
> 
> What if I do not know a priori which files *do* need to be updated? Is
> there a command that I can get this information from? Also, I may not

Sorry, I don't quite understand. You want to check out some subset of
files, but you don't know which subset?

Try "git status" or "git diff" to look at which files have changes?

Or maybe we didn't understand your original question.

> necessarily be checking out HEAD.

Doing

  git checkout v1.5 -- <list of files>

or using any other ref will work just fine.

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