git master에서 main브랜치로 변경

서현우·2022년 6월 6일
0

git

목록 보기
3/4
1. default변경
https://github.com/settings/repositories

2. master브랜치가 있는 프로젝트에서 main브랜치로 변경
1) gitHub에 프로젝트 - settings - Branches - rename
2) Terminal에서 아래를 순서대로 입력
> git branch -m master main
> git fetch origin
> git branch -u origin/main main
> git remote set-head origin -a
profile
안녕하세요!!

0개의 댓글