Develop/Git
Branch를 Main(a.k.a. Master)로 변경
Programics
2021. 5. 24. 14:32
반응형
- master가 노예제도를 연상시킨다고 하여, main으로 변경됨
* 다른 변경 사항들이 push가 완료 되어 있다는 전제 하에
1. main로 checkout
e.g. git checkout main
2. main에 branch 덮어쓰기
e.g. git reset --hard branch_name
3. 강제(-f) push
e.g. git push -f origin main
반응형