728x90 반응형 git branch2 [git] git branch 이름 변경 git 작업을 하다보면 git branch 이름 변경이 필요한 경우가 있다. 그럴경우 아래와 같은 방법으로 git branch 명을 변경 할 수 있다. Local Branch 이름 변경 방법 -m 옵션을 통해 Local Branch의 이름을 변경 할 수 있다. $ git branch -m {new_branch_name} Remote Branch 이름 변경 방법 변경된 Local Branch를 Remote에 push해서 변경한다. $ git push origin -u {new_branch_name} 이후 이전 브랜치를 delete 한다. $git push origin --delete {old_branch_name} 2022. 5. 20. [Git] Delete git branch Delete git remote branch $ git push --delete origin Delete git local branch $ git branch -d $ git branch -D 2019. 8. 1. 이전 1 다음 728x90 반응형