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 |
Tags
- 자료구조
- expo-cli error
- retrofit
- ADsP
- kotlin checkbox error
- 선택정렬
- watchmanresponse
- kotlin recyclerview checkbox error
- 데이터 이해
- Kotlin
- watchman error
- h2 error
- 쿼리문
- GitHub
- sockettimeout
- MySQL
Archives
- Today
- Total
Stand up lee
[Git] Git Push Error _ error: src refspec master does not match any 해결 본문
개발일기
[Git] Git Push Error _ error: src refspec master does not match any 해결
tubeeee 2021. 9. 17. 00:14* src refspec master does not match any 해결
visual studio code로 git에 push하려다가 계속 문제가 생겼다.
git init
git add .
git commit -m "message"
git remote add origin "https://github.com/repository.git"
git push -u origin master
이렇게 했는데도 안된다 master branch가 없기 때문이란다. 처음에 깃 프로젝트를 생성할 때 default로 생성되는 branch 는 main이다
git checkout -b 'master'
git push origin master
이렇게 해주면 master branch를 새로 생성하고, 거기에 push를 하게 되어 해결된다.
기본 default로 생성되는 branch 이름은 github repository 설정에서 변경할 수 있다.
이렇게 새로 생성한 branch가 있으면 안쓰는 branch 삭제할 것!
'개발일기' 카테고리의 다른 글
[Kotlin] error : Recyclerview 스크롤시 Checkbox checked 에러 (0) | 2022.03.30 |
---|---|
[kotlin] error : 서버통신시 fail to connect to / java.net.SocketTimeoutException (0) | 2022.02.03 |
[Kotlin] 회원가입 유효성 검사 _ 정규표현식 사용 (0) | 2022.01.28 |
[Server] 세션, 쿠키, 토큰 정리 (0) | 2022.01.26 |
[Kotlin] Recyclerview의 Adapter에서 Fragment로 데이터 전달 (0) | 2021.09.22 |