본문 바로가기
Git

git에서 branch 이름 바꿨을때 로컬에서도 업데이트 하는 방법

by 보안매크로 2024. 3. 30.
728x90

main is now named DataWrite

If you have a local clone, you can update it by running the following commands.

 
git branch -m main DataWrite
git fetch origin
git branch -u DataWrite DataWrite
git remote set-head origin -a
728x90