I was working on master branch.
I have made many changes on my project, then commit & pushed all the changes to remote repository by:
git push origin master Then, I made a new branch, and push the latest code to the new branch (to make it a remote branch) like following:
git branch new-branch git checkout new-branch git push origin new-branch I am now on new-branch. Now, both master & new-branch have the same latest code locally & remotely.
My question is:
How can I revert the change back on master branch both locally and remotely. But keep all the changes only on new-branch ?