This has drawback as it uses console redirection so it depends on the 
console output. On Windows PowerShell has some 
output encoding. I guess it will work just fine on Ubuntu, however I should 
test it to make sure it works for non-english language encodings.

On Friday, May 3, 2013 3:24:50 AM UTC+3, Dale Worley wrote:
> > > Is there a git porcelain command to revert the working dir state of a 
> > > staged file to its HEAD state and at the same time keep the staged 
> state of 
> > > the file? 
> git show HEAD:$FILE >$FILE 
> Dale 

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 
For more options, visit

Reply via email to