- I have git repository with commits A-B-C (from earlier to newer) - on the server and on my machine. It is master branch.
I decided that last commit was not as good as I thinked before. So I have made
git checkout B
I have made some changes and commits. So now I have:
A-B-C (master branch synced with server) \ D-E-F ('detached from 6ebd863' branch)
Now I want to work 'detached from 6ebd863' branch and rename it to 'master'. What the best way to do it.