//-------------------------------------
< 로컬 >
- 예) master -> main
git checkout master
git branch -m main
//-----------------------------------------------------------------------------
//-------------------------------------
< github >
- github 기본 브랜치(main, master) 이름 변경
https://github.com/저장소/settings/branches
Default branch 변경 메뉴
//-------------------------------------
브랜치 보호 설정
https://github.com/저장소/settings/branches
Branch protection rules -> Add rule
- 기본 브랜치 보호 옵션
Require a pull request before merging : 체크
Require approvals : 체크
//-----------------------------------------------------------------------------
//-------------------------------------
- git 설정 - 기본 브랜치 이름 변경 설정
git config --global init.defaultBranch 브랜치이름
'Code' 카테고리의 다른 글
VS Code 업데이트 후 아이콘 문제 해결 방법 (1) | 2022.09.20 |
---|---|
github 계정 이전 방법 (0) | 2022.08.04 |
VS Code 에러 "Python is not installed." 해결방법 (1) | 2022.07.29 |
[Python] AnaConda 사용법 , 환경변수 설정 (0) | 2022.07.25 |
자연어 처리(NLP ) 역사 (0) | 2022.07.24 |
댓글을 달아 주세요