In Git, I sometimes work on long branches. I like to relearn the wizard from time to time to make it easier to merge when I'm ready.
After rebooting, I can not push the previously deleted branch to the remote computer, because my branch history is no longer consistent with the deleted history of this branch. So first I have to delete it.
This is my current workflow:
git checkout my_branch git rebase master git push origin :my_branch
Is there one atomic command that could replace the last two teams?
source share