branch2 git, branch 이름 바꾸기 * local $ git branch -m old_name new_name * remote $ git push origin -u new_name $ git push origin --delete old_name remote의 default branch는 local에서 삭제가 안된다.github 사이트에 로그인 후 프로젝트의 settings에서 default branch를 새로운 branch로 바꿔준 후에 삭제해야한다. 2021. 1. 20. [git] 리모트/브랜치 관련 내용 origin : 원격지 저장소를 가르키는 명칭 master : 최초로 생성되는 default 브랜치 - 원격 저장소 # git remote add origin https://github.com/namacin/project.git 원격 repository 추가 # git remote set-url --push origin https://github.com/namacin/project.git 원격 repository url 변경 - 리모트 갱신 # git remote update - 로컬에서 브랜치 생성 # git checkout -b new-branch # 현재 브렌치에서 new-branch 생성 # git checkout -b dst-branch src-branch # src-branch 에서 dst-b.. 2020. 4. 21. 이전 1 다음