On Tuesday, January 15, 2013 11:48:33 PM UTC+1, Carsten wrote:

> Hi again, 
> Am 11.01.2013 11:38, schrieb Carsten Fuchs: 
> > [...] 
> > So my real question is, why does Git not do something analogous? 
> > (Afaics, update the HEAD, update the Index, but leave the working-copy 
> edition alone?) 

> > I searched for this beforehand, and most advice involves either 
> stashing, or with "git 
> > reset --hard" the loss of the untracked files. 

You can also leave out the --hard part, so the untracked files won't be 
touched. Note however that this will not touch the whole working copy, it 
will just clear the index and move HEAD. So every other files toched by 
those new commits will show up on git status. Those can be manually reset 
(or reverted in svn terms) by git checkout HEAD <file>

> Anyone? 
> Best regards, 
> Carsten 
> -- 
>     Cafu - the open-source Game and Graphics Engine 
> for multiplayer, cross-platform, real-time 3D Action 
>            Learn more at http://www.cafu.de 

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to