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
- freebooze
- noise contrast estimation
- objective functions for machine learning
- Actor-Critic
- non parametic softmax
- sidleup
- sample rows
- normalization
- checkitout
- resample
- scowl
- loss functions
- 3d medical image
- remove outliers
- shadowing
- rest-api
- straightup
- MRI
- Inorder Traversal
- clip intensity values
- Excel
- model-free control
- Policy Gradient
- pulloff
- REINFORCE
- thresholding
- domain adaptation
- Knowledge Distillation
- fastapi
- 자료구조
Archives
- Today
- Total
Let's Run Jinyeah
로컬 저장소를 새로운 Github 저장소에 등록 본문
[Github 기본 브랜치 master에서 main으로 변경됨]
Github 기본 브랜치 master에서 main으로 변경하면서 새로운 저장소를 생성할 때 초기 옵션을 선택하면 main 브랜치가 기본 브랜치로 생성된다. 하지만 Git 2.28.0 버전 이하를 사용한다면 command창에서 로컬 저장소의 기본 브랜치는 여전히 master이다. 따라서 처음 로컬 저장소를 github에 올릴 때 자동으로 두 개의 branch(main, master)가 생성되는 경우가 발생한다.
해결방법은 두 가지이다.
1. Git 버전을 업그레이드 한다.
2. 로컬 저장소에서 main branch를 생성한 후 github에 push 한다.
두 번째 방법으로 해결해보았다.
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin <remote github 주소>
git push -u origin main
'Programming > Git&Github' 카테고리의 다른 글
Git rebase (0) | 2021.05.05 |
---|---|
Git Merge 충돌 해결 단계 (0) | 2021.02.11 |
Git Push 실패 - Pull & Fetch & Merge (0) | 2021.02.11 |
Git reset & checkout & ignore (0) | 2020.02.03 |
Git Branch & Merge (0) | 2020.02.03 |
Comments