On 11/12/2012 06:38, christopherbalz-/[email protected] 
wrote:
> On the command line, if I want to replace a file that I deleted (with one from
> 'master'), I just do `git checkout`.  However, I'm confused by the Magit
> interface for this: It seems to want the user to supply a different branch in
> order to proceed.  
> 
> But shouldn't this be really easy - do just replace a deleted file with a 
> fresh
> one from 'master' ?  In either case, how to do that on Magit? 

Highlight the deleted file in magit under the unstaged files section and press
"k", and enter "yes". "k" discards changes (in this case, the change is deleting
the file).

-- 
Kind regards,
Loong Jin

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to