Notice
Recent Posts
Recent Comments
05-03 01:09
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- join
- 백준 1756
- react
- 백준 2852
- 파이썬
- 백준 크리문자열
- 백준 11059
- 리스트 컴프리헨션
- SAA-C02
- 깃허브
- 데이터베이스
- ROWNUM
- SQLD
- sql
- AWS
- github
- 백준 24499 파이썬
- 알고리즘
- 프로그래머스 조건에 맞는 개발자 찾기
- 정규화
Archives
- Today
- Total
-
[Github] master → main 강제 병합 본문
반응형
깃허브 repository를 새로 만들고 main이 아닌 다른 브랜치에 먼저 커밋을 했을 때,
아래와 같은 문제가 나오는 경우 해결 방법
"There isn't anything to compare. Nothing to compare, branches are entirely different commit histories"
git checkout master
git branch main master -f
git checkout main
git push origin main -f
반응형
'Git' 카테고리의 다른 글
[Github] 이미 커밋한 내용 다른 브랜치로 옮기기 (0) | 2022.11.21 |
---|---|
[Github] 이미 push한 폴더 삭제하는 방법 (0) | 2021.03.30 |
[Github] 잔디가 심어지지 않는 경우 (2) | 2021.03.24 |
Comments