Imagine the following commits:
commit 1
commit 2
commit 3
In which I have the files a,b and c. I add the file d, and in the next 3 commits I modify it ( I'm testing some JS on heroku ). I now have three more commits:
commit 4 ( this add the d file, the other 2 commits only modify it )
commit 5
commit 6
How can I return the working directory to the state of commit 3 while keeping the pushed commits 4 5 and 6? ( the file d should not exist at commit 3, or I'd like it at least to appear as untracked )