반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- VPN
- 도커
- java bigdecimal
- AWS CI/CD 구축하기
- or some instances in your deployment group are experiencing problems.
- aws
- Spring Error
- Flux
- chart.js
- aws cicd
- Airflow
- codepipeline
- Python
- Kafka
- COALESCE
- bootstrap
- codedeploy
- IntelliJ
- redis
- Spring
- docker
- SQL
- Jenkins
- PostgreSQL
- JavaScript
- chartjs
- codedeploy error
- node
- codebuild
- kubeflow
Archives
- Today
- Total
Small Asteroid Blog
[Git] master -> main 합치기 (덮어쓰기) 본문
728x90
로컬에서 프로젝트를 생성 후 깃 연결을 위해 git init 설정을 하면 master 브랜치로 생성되는데
Git Repository에서 프로젝트를 생성하면 main 으로 디폴트 브랜치가 생성된다.

기본 브랜치는 main 이기 때문에 push 나 pull이 제대로 되지 않는 경우들이 있다.
그래서 master 브랜치와 main 브랜치를 하나로 만들기 위해서
master 브랜치의 내용을 main으로 옮기고자 했다.
해당 방법은 main의 내용이 다 삭제됨으로 master와 동기화 하고 진행하는 걸 추천한다.
git checkout master
git branch main master -f
git checkout main
git push origin main -f
728x90
반응형