I have the following situation.
What I wanted to do is the following: reset the HEAD
to where the master
is on the picture. Also I have a branch named backupRestore
. Now I want that branch to end with the commit it is created of. So I want to remove the last two commits : Merge branch 'master' of github...
and remotes\origin\master
. And this way reset the HEAD
to master
(master on the picture). The problem is that I need to update my github repo, which has different structure (as you can see, remotes/origin/master
is the HEAD
on github.
UPDATE
After applying the solution my tree looks like this: