GIT tip
Working in one ticket for my own project I noticed that I committed my code to my local master branch.
Get Daniel Blanco Rojas’s stories in your inbox
Join Medium for free to get updates from this writer.
I never commit/push directly to master branch, so this is what I did:
git checkout -b newbranchCreate a new branch from master, this will copy the committed work to my new branch.
git pushThis will update remote with my new branch data.
git checkout master
git reset --hard origin/masterAnd checkout master and make it the same as remote.








