programing

Github Desktop에서 로컬 브랜치를 어떻게 삭제하나요?

sourcetip 2021. 1. 15. 20:26
반응형

Github Desktop에서 로컬 브랜치를 어떻게 삭제하나요?


지난주에 Windows Github를 Github Desktop으로 업그레이드했습니다 .

Github Windows 용으로 만든 마지막 업데이트보다 확실히 훨씬 빠릅니다. 그것은 또한 커밋의 멋진 시각적 타임 라인을 가지고 있으며 아마도 멍청하지만 로컬 브랜치를 삭제하는 기능이 사라진 것 같습니다 .

"지점 관리"(또한 사라짐) 아래에있었습니다. 어떤 생각?

최신 정보:

v3.0.5 에서는 기어 메뉴에서 로컬 브랜치를 삭제하는 옵션을 추가했습니다.여기에 이미지 설명 입력


Mac OSX :

최신 버전에서이 문제가있는 모든 사용자 : 삭제할 분기를 선택하고 "Branch"-> "Delete Branch"로 이동하십시오.

Github 데스크톱 (Mac OSX)

Windows의 경우 :

Github 데스크톱 (Windows)


이에 대해 연락했을 때 github CS에서 얻은 답변은 다음과 같습니다.

Thu 2015-08-13 3:38 PM 안녕하세요 Daniel, 죄송합니다! 향후 릴리스에서 분기를 다시 삭제하는 옵션을 추가 할 예정입니다. 그러나 지금은 Git 셸에서 브랜치를 삭제할 수있는 방법이 있습니다. Git 셸에서 저장소를 열려면 GitHub 데스크톱에서 ~를 누르십시오. 'git branch -d branch_name'실행 새 브랜치를 생성하면 다음 옵션이 표시됩니다. 비교 그래프에 직접 게시하십시오. 말이 안되거나 더 궁금한 점이 있으면 알려주세요. 불편을 끼쳐 드려 죄송합니다. 로버트

셸에서 로컬 브랜치를 삭제하고 변경 사항을 인식하는 git 데스크톱 사이에 지연 (약 2 ~ 3 분)이 있음을 알았습니다.

최신 정보

3.0.5에서 그들은 기어 메뉴에서 현재 분기를 삭제합니다.


I personally confirmed that, on the new version, advanced branch management has been removed, and you can only delete branches from the website.

As a personal recommendation, you should give Atlassian SourceTree a try. Works like a charm, it's free (requires a free registration), and even when it's originally developed to work with Atlassian's BitBucket repositories, it also works well with GitHub.

And BTW, with SourceTree, you can remove GitHub branches :)

Hope it helps!


In GitHub Desktop v2, you can delete the current branch here:

여기에 이미지 설명 입력

With the following dialog allowing you to delete it from remote as well:

여기에 이미지 설명 입력


때때로 GitHub Desktop 에서 이상한 동작이 발생합니다 . GitHub Shell에서 분기를 삭제하면 분기가 GitHub Desktop의 드롭 다운 메뉴에 계속 표시됩니다! ... GitHub Desktop의 "Delete branch-name ..."기능과 동일한 동작.

git show-ref모든 심판을 나열하기 위해 해결했습니다.

cf7c75b18e47a566f5bebccd3746f19fa426af4f refs/heads/master
cf7c75b18e47a566f5bebccd3746f19fa426af4f refs/remotes/origin/HEAD
540b3c8032f76ec13c84d6f40de885b996465dcb refs/remotes/origin/branch1
cf7c75b18e47a566f5bebccd3746f19fa426af4f refs/remotes/origin/branch2

원격에 대한 참조가있는 경우 GitHub Desktop은 분기를 전혀 삭제할 수 없습니다.

당신과 함께 심판을 제거 할 수 없습니다 git update-ref -d refs/remotes/origin/branch*다음, 당신은

cf7c75b18e47a566f5bebccd3746f19fa426af4f refs/heads/master
cf7c75b18e47a566f5bebccd3746f19fa426af4f refs/remotes/origin/HEAD

이제 branc를 제거 할 수 있습니다. git branch -d branch*

참조 URL : https://stackoverflow.com/questions/32102810/how-do-i-delete-a-local-branch-on-github-desktop

반응형