a guest May 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. git branch -m old_branch new_branch         # First, rename branch locally
  2. git push origin :old_branch                 # Then, delete the outdated branch    
  3. git push --set-upstream origin new_branch   # And finally, push the new branch. Also, the new remote needs to be tracked, that is why we set set local branch to do so.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand