Skip to main content
deleted 77 characters in body
Source Link
Hari_pb
  • 7.5k
  • 4
  • 51
  • 56

Just twothree steps to replicate change in name on remote as well as on GitHub:

Step 1 git branch -m old_branchname new_branchname

Step 2 git push origin :old_branchname new_branchname

EDIT Now mostly on servers like codecommit etc. step 2 can be replaced by

Step 23 git push --set-upstream origin new_branchname

Just two steps to replicate change in name on remote as well as on GitHub:

Step 1 git branch -m old_branchname new_branchname

Step 2 git push origin :old_branchname new_branchname

EDIT Now mostly on servers like codecommit etc. step 2 can be replaced by

Step 2 git push --set-upstream origin new_branchname

Just three steps to replicate change in name on remote as well as on GitHub:

Step 1 git branch -m old_branchname new_branchname

Step 2 git push origin :old_branchname new_branchname

Step 3 git push --set-upstream origin new_branchname

added 133 characters in body
Source Link
Hari_pb
  • 7.5k
  • 4
  • 51
  • 56

Just two steps to replicate change in name on remote as well as on GitHub:

Step 1 git branch -m old_branchname new_branchname

Step 2 git push origin :old_branchname new_branchname

EDIT Now mostly on servers like codecommit etc. step 2 can be replaced by

Step 2 git push --set-upstream origin new_branchname

Just two steps to replicate change in name on remote as well as on GitHub:

Step 1 git branch -m old_branchname new_branchname

Step 2 git push origin :old_branchname new_branchname

Just two steps to replicate change in name on remote as well as on GitHub:

Step 1 git branch -m old_branchname new_branchname

Step 2 git push origin :old_branchname new_branchname

EDIT Now mostly on servers like codecommit etc. step 2 can be replaced by

Step 2 git push --set-upstream origin new_branchname

added 15 characters in body
Source Link
Hari_pb
  • 7.5k
  • 4
  • 51
  • 56

Just two steps to replicate change in name on remote as well as on GitHub:

Step 1 git branch -m old_branchname new_branchname

Step 2 git push origin :old_branchname new_branchname

Just two steps to replicate on remote as well as on GitHub:

Step 1 git branch -m old_branchname new_branchname

Step 2 git push origin :old_branchname new_branchname

Just two steps to replicate change in name on remote as well as on GitHub:

Step 1 git branch -m old_branchname new_branchname

Step 2 git push origin :old_branchname new_branchname

Active reading.
Source Link
Peter Mortensen
  • 31.1k
  • 22
  • 111
  • 134
Loading
Source Link
Hari_pb
  • 7.5k
  • 4
  • 51
  • 56
Loading