I had a remote branch called bug_fix
that I wanted to rename to status_page
. These are steps that I have taken being on master
:
git branch bug_fix // this was a mistake
git branch -m bug_fix status_page
git push origin --delete bug_fix
git push origin status_page
After git branch bug_fix
the code was same as in master and basically I pushed empty branch. Is there a way to get back the code from bug_fix
?