[solved] Github Desktop 에서 default branch 가 바뀌지 않는다.
문제 상황
- 원래 repo 에 master branch 가 있었는데, main 으로 이름을 바꾸고 싶었음
- 그래서 깃허브에서 master branch 를 rename 해서 main 으로 바꿔줌
- 아래처럼 알림창 띄우길래, cmd 창 가서 해당 repo에서 그대로 잘 해줌
- 깃헙 데탑에서 Fetch 를 했는데도 그대로 master가 default 이고 main은 없길래, local에서 main branch를 새로 만들어줌
- main 을 master로 merge 하려고 했는데, identical 해서 compare 해도 pr 이 안 보내지는거임
- 그래서 그냥 master를 삭제함 ( 이게 가장 큰 문제였다... 생각하고 행동으로 옮기자... ;;; )
- 근데 main 이 default 라고 뜨지는 않음
- 근데 깃허브에서 repo setting 가서 branch 봤더니 여긴 main 이 default 임
- 깃헙 데탑만 이런거임 돌겠음 어차피 branch 한 개라서 상관 없긴 한데 오기가 생겨서 컴 껐다 켰는데도 변함 없음
해결 방법
- Current repository 우측에 있는 drop down 버튼 눌러서 내 repo 다시 한 번 클릭하니까 reload 됨
- Default branch 로 바뀐 걸 볼 수 있었다... 행복해...
참고한 문서
Default Branch does not Update · Issue #5709 · desktop/desktop
Description Upon updating the default branch in my private GitHub repo, Desktop does not update. The old branch is still marked as default and used by default for new branches. Version GitHub Deskt...
github.com
What is the difference between `git fetch origin` and `git remote update origin`?
In response to a question about pulling one commit at a time from a git repository, I was recommended to use git remote update instead of git fetch. I have read both man pages but cannot say I
stackoverflow.com
'🔨삽질' 카테고리의 다른 글
PC 사양 확인 방법 (CPU, GPU, RAM, HDD) (5) | 2022.08.23 |
---|---|
[오%류^] Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached (0) | 2022.08.23 |
안드로이드 스튜디오 assets 폴더 추가하는 방법 (0) | 2020.07.08 |
[solved] 작업관리자에서 크롬 옆에 있는 숫자는 뭘까? (0) | 2020.06.09 |
[solved] AttributeError: module 'tensorflow._api.v2.lite' has no attribute 'interpreter' (0) | 2020.06.08 |
댓글
이 글 공유하기
다른 글
-
PC 사양 확인 방법 (CPU, GPU, RAM, HDD)
PC 사양 확인 방법 (CPU, GPU, RAM, HDD)
2022.08.23 -
[오%류^] Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached
[오%류^] Watchpack Error (watcher): Error: ENOSPC: System limit for number of file watchers reached
2022.08.23 -
안드로이드 스튜디오 assets 폴더 추가하는 방법
안드로이드 스튜디오 assets 폴더 추가하는 방법
2020.07.08 -
[solved] 작업관리자에서 크롬 옆에 있는 숫자는 뭘까?
[solved] 작업관리자에서 크롬 옆에 있는 숫자는 뭘까?
2020.06.09