-
git branch main으로 설정하기설치&설정 관련/git 2022. 12. 15. 17:45728x90
2020년 6월 236857: all: replace usages of whitelist/blacklist and master/slave 에서 인종 차별적 요소나 주종 관계의 의미를 담는 whitelist/blacklist와 master/slave를 사용하지 말자는 발제가 있었습니다.
github도 기본 branch명을 master에서 main으로 변경하였습니다.
master => main 변경
branch 생성시 -M 옵션을 주게되면 해당 branch가 기본이 됩니다.
$ echo "# hello world" >> README.md $ git init $ git add README.md $ git commit -m "first commit" $ git branch -M main $ git remote add origin git@github.com:lahuman/lahuman.github.io.git $ git push -u origin main
참고자료
728x90'설치&설정 관련 > git' 카테고리의 다른 글
gitlab & Jenkins 설치 명령어 정리 (0) 2022.10.07 git 참고 자료 (0) 2014.02.03