<div dir="ltr">(Possibly outside the scope of the discussion but I've noticed it mentioned a few times...) Git works by managing the whole WC together, so changing individual subtrees and keeping modified files lying around are not the best way to work with it. Branches and commits can be as ephemeral as needed.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 25, 2016 at 2:32 PM Davide Liessi <<a href="mailto:davide.liessi@gmail.com">davide.liessi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2016-11-25 15:27 GMT+01:00 Davide Liessi <<a href="mailto:davide.liessi@gmail.com" class="gmail_msg" target="_blank">davide.liessi@gmail.com</a>>:<br class="gmail_msg">
> Try in the directory<br class="gmail_msg">
> git checkout 72164060176afd82227b03e05aede0ce292f093f .<br class="gmail_msg">
> or even<br class="gmail_msg">
> git checkout 72164060176afd82227b03e05aede0ce292f093f <specific file><br class="gmail_msg">
><br class="gmail_msg">
> The last argument can be any path to file or directory in the repository.<br class="gmail_msg">
<br class="gmail_msg">
I'd just add that the command<br class="gmail_msg">
git checkout -- <path><br class="gmail_msg">
adverstised by git status "to discard changes in working directory" is<br class="gmail_msg">
equivalent to<br class="gmail_msg">
git checkout <current-branch> <path><br class="gmail_msg">
<br class="gmail_msg">
Best wishes.<br class="gmail_msg">
Davide<br class="gmail_msg">
</blockquote></div>