I accidentally push branch instead of master So is there any way to revert that push so that i can bring master code ? I am supposed to push master but i push git push origin branch name ?
I was in master and i supposed to hit this code and go another branch from master
"git checkout ProductBranch"
but i accidentally
git push ProductBranch
.So i donot want to revert that git push ProductBranch
@coder72 if you've pushed ProductBranch to remote, that's fine.
Your master branch isn't effected, all you've done is push the branch from a different branch. The only thing that would be an issue is if you've merged in your ProductBranch.
Check on your remote repo, and see if your master branch took in the new commit. I think all you've done is introduce your ProductBranch to remote. if you don't want that there just delete it.