git apply targetfile.patch logs warning: 1 line adds whitespace errors . I 
own a Windows PC so this must be an issue with line ending. Also if I use 
PowerShell console to output the diff to patch file, I get error fatal: 

git stash -p works, but it is tedious when more than one file has 

git checkout-index I couldn't find helpful information on this one.

On Thursday, May 2, 2013 11:54:49 PM UTC+3, Thomas Ferris Nicolaisen wrote:
> It sounds like a nice idea.. Maybe there is a git plumbing command for it. 
> What you could try instead perhaps is to work with patches. Instead of 
> staging the state of the file you want to keep, just store it in a patch:
> git diff SomeFile.txt > /tmp/1.patch #save state
> git checkout . # clear changes
> git apply /tmp/1.patch #restore state
> You could also consider using git stash -p and selectively stash the diffs 
> you want to keep for later.
> Where should we submit a feature request in case a porcelain command is 
>> missing for this case?
> The place to go for feature requests is the Git developer mailing list: 

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