Skip to main content
Active reading.
Source Link
Peter Mortensen
  • 31.1k
  • 22
  • 111
  • 134

Here is 3are three steps: A command that you can call inside your terminal and change branch name.

git branch -m old_branch new_branch         # Rename branch locally    
git push origin :old_branch                 # Delete the old branch    
git push --set-upstream origin new_branch   # Push the new branch, set local branch to track the new remote

If you need more: step-by-step, the hereHow To Change Git Branch Name is a good article about that

How To Change Git Branch Name.

Here is 3 steps: command that you can call inside your terminal and change branch name

git branch -m old_branch new_branch         # Rename branch locally    
git push origin :old_branch                 # Delete the old branch    
git push --set-upstream origin new_branch   # Push the new branch, set local branch to track the new remote

If you need more: step-by-step, the here is a good article about that

How To Change Git Branch Name

Here are three steps: A command that you can call inside your terminal and change branch name.

git branch -m old_branch new_branch         # Rename branch locally
git push origin :old_branch                 # Delete the old branch
git push --set-upstream origin new_branch   # Push the new branch, set local branch to track the new remote

If you need more: step-by-step, How To Change Git Branch Name is a good article about that.

Source Link

Here is 3 steps: command that you can call inside your terminal and change branch name

git branch -m old_branch new_branch         # Rename branch locally    
git push origin :old_branch                 # Delete the old branch    
git push --set-upstream origin new_branch   # Push the new branch, set local branch to track the new remote

If you need more: step-by-step, the here is a good article about that

How To Change Git Branch Name