5
I have a project and at the moment I have 3 branches, the master
, one dev
and one that I needed to create in parallel to the dev for a funcionalidade
the part, so far no news, my problem was that I’m in the branch and made a git pull origin funcionalidade
and with it downloaded everything from the functionality to the dev doing the merge, and I wasn’t supposed to do that, there’s no way to undo that pull
?
Simple solutions to simple problems! The
git reset --hard
it just didn’t work, because for the functionality I had already made some commits, so I just looked for the point, I found the specific hash and with that it did work.– Marcelo Diniz
A simple tactic I sometimes use is
git reset --hard HEAD~N
, whereN
is the number of commits back that I want to go back to.– gustavohenke