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
- 제어문
- 인스턴스
- CREATE
- break
- continue
- 메서드
- If
- 이클립스 설치
- JavaScript
- Java
- while
- 노개북
- 개발자 번아웃
- 노마드코더
- react
- JavaScript 이벤트
- IT잡학사전
- return
- til
- 버전 표시 방법
- Kotlin
- VS Code
- 개발자북클럽
- 리액트
- 자바스크립트
- HTML
- CSS
- vscode
- Today I Learned
- MySQL
Archives
- Today
- Total
윤제니
[ Git ] error: refname refs/heads/master not found fatal: Branch rename failed 에러 해결 방법 본문
Git
[ Git ] error: refname refs/heads/master not found fatal: Branch rename failed 에러 해결 방법
꿈다루 2024. 2. 15. 12:57VS Code에서 터미널 명령어를 사용하여 Github에 연동하는 과정에서 에러 발생 ❌
아래 명령어를 실행하는 도중 "git branch -M main" 에서 에러 발생,,,
발생한 에러는 아래와 같으며, 원인은 Add와 Commit을 하지 않아서 발생했다고 한다.
error: refname refs/heads/master not found
fatal: Branch rename failed
해결 방법
아래의 명령어를 실행 후 다시 순서대로 실행하면 해결 완료!
git add *
git commit -m 'init'