I'm trying to get the previous version of a file like this:
git checkout <git-hash>
After this, I see that the file on my hd is the previous version. How can I push this version to the server??? I tried the following:
git push ab master
but all I get is
Everything up-to-date
What am I doing wrong?
When i do
git checkout 123456 -- src/test.c
git commit -m "Bringing back test.c from commit 123456"
I get
Not currentyly on any branch
123456 is hash