1. git branch -m
-when i am on the branch I want to rename
1-1 git branch -m oldName newName
-when i am not on the branch
2. git push origin :oldName newName
- delete the old name remote branch and push the new name local branch
2-1 git checkout newname
-git switch to new name branch
3. git push origin -u newName
- reset the upstream branch for the new name local branch.
switch to the branch and then :
-when i am on the branch I want to rename
1-1 git branch -m oldName newName
-when i am not on the branch
2. git push origin :oldName newName
- delete the old name remote branch and push the new name local branch
2-1 git checkout newname
-git switch to new name branch
3. git push origin -u newName
- reset the upstream branch for the new name local branch.
switch to the branch and then :
댓글
댓글 쓰기