为什么远程分支没有删除?

时间:2014-04-06 00:41:13

标签: smartgit

我正在使用SmartGit,我似乎无法删除我的远程分支机构。当我尝试删除它们时,它会失败并且我得到的错误消息是"无法从头部删除分支"。我对git不太熟悉,所以在删除分支之前忘记做某事了吗?

以下是尝试删除远程分支的日志。

  

878099(2014-04-07 21:50:10,148)[main] INFO q.swt.shellActivation -   shell激活Shell {USERNAME - SmartGit / Hg 5.0.8(for   仅限非商业用途)} @ AFE99B 878099(2014-04-07 21:50:10,148)   [main] INFO q.swt.shellActivation - 激活从null更改为   Shell {USERNAME - SmartGit / Hg 5.0.8(用于非商业用途)   只)} @ AFE99B 880880(2014-04-07 21:50:12,929)[主要] INFO
  q.action - 执行' branchDelete,删除...,删除当前   选定的分支。'窗口中上下文菜单中的菜单项   org.eclipse.swt.widgets.Shell@AFE99B:Shell {USERNAME - SmartGit / Hg   5.0.8(仅限非商业用途)} 880882(2014-04-07 21:50:12,931)[main] INFO q.dialog - 显示对话框7(@ 155F302)   ' @ 1C53D4E - 删除' (所有者:@ AFE99B)880896(2014-04-07 21:50:12,945)   [主要] INFO q.swt.shellActivation - shell停用Shell   {USERNAME - SmartGit / Hg 5.0.8(仅限非商业用途)} @ AFE99B   880897(2014-04-07 21:50:12,946)[主要] INFO q.swt.shellActivation -   shell激活Shell {删除} @ 155F302 880897(2014-04-07   21:50:12,946)[主要] INFO q.swt.shellActivation - 激活变化   来自Shell {USERNAME - SmartGit / Hg 5.0.8(用于非商业用途)   只有} @ AFE99B到Shell {删除} @ 155F302 881815(2014-04-07   21:50:13,864)[主要] INFO q.action - 执行'删除   也远程'窗口中的按钮@ 155F302所有者@ AFE99B 881815   (2014-04-07 21:50:13,864)[主要] INFO q.dialog - 显示   对话框7(@ 155F302)' @ 1C53D4E - 删除' (所有者:@ AFE99B)881819   (2014-04-07 21:50:13,868)[主要] INFO q.swt.shellActivation - shell   已激活Shell {USERNAME - SmartGit / Hg 5.0.8(用于非商业用途)   只有}} @ AFE99B 881819(2014-04-07 21:50:13,868)[主要] INFO   q.swt.shellActivation - Shell的激活更改   { Disposed } @ 155F302 to Shell {USERNAME - SmartGit / Hg 5.0.8(for   仅限非商业用途)} @ AFE99B 881845(2014-04-07 21:50:13,894)   [WorkerThread-1] INFO sg.command - 删除分支   [CgCommitRef [refs / remotes / origin / BRANCH_NAME]]来自   smartgit.kX@c3e1af26为[C:\ Users \ COMPUTER \ USERNAME @ 1A31360] /。   881870(2014-04-07 21:50:13,919)[WorkerThread-1] INFO   smartgit.core.executable - 执行以下命令:   " C:\ Program Files \ Git \ bin \ git.exe"推 - 瓷 - 进步   --recurse-submodules = check origin:refs / heads / BRANCH_NAME 881870(2014-04-07 21:50:13,919)[WorkerThread-1] INFO   smartgit.core.executable - 在目录中:C:\ Users \ COMPUTER \ USERNAME   882932(2014-04-07 21:50:14,981)[QThreadPoolThread-6(smartgit.aIl)]   INFO smartgit.server - 收到的命令:get-http-credentials   882937(2014-04-07 21:50:14,986)[QThreadPoolThread-6(smartgit.aIl)]   INFO smartgit.transport.http - 请求凭据   6856957067062445309(userName = USERNAME)883496(2014-04-07   21:50:15,545)[QThreadPoolThread-3(smartgit.fe)] INFO   smartgit.command.logging - stderr:错误:无法推送一些引用   ' GIT_URL_THAT_I_CANT_POST' 883496(2014-04-07 21:50:15,545)   [QThreadPoolThread-0(smartgit.fe)] INFO smartgit.command.logging -   stdout:到GIT_URL_THAT_I_CANT_POST 883497(2014-04-07 21:50:15,546)   [QThreadPoolThread-0(smartgit.fe)] INFO smartgit.command.logging -   标准:! :refs / heads / BRANCH_NAME [远程拒绝](删除   禁止)883497(2014-04-07 21:50:15,546)[QThreadPoolThread-0   (smartgit.fe)] INFO smartgit.command.logging - stdout:完成883498   (2014-04-07 21:50:15,547)[WorkerThread-1] ERROR sg.command    - 无法从原点删除BRANCH_NAME。 smartgit.ej:无法从原点删除BRANCH_NAME。在smartgit.ms.a(SourceFile:47)at   smartgit.atk.a(SourceFile:54)在smartgit.asl.a(SourceFile:57)at at   smartgit.il.a(SourceFile:20)smartgit.iW.a(SourceFile:85)at   smartgit.by.a(SourceFile:42)在smartgit.jQ.run(SourceFile:115)at at   smartgit.Rn.run(SourceFile:53)883499(2014-04-07 21:50:15,548)[主要]   INFO q.dialogs - 显示(警告):命令失败 - 执行   命令失败了。 883501(2014-04-07 21:50:15,550)[主要] INFO
  q.dialog - 显示对话框8(@ 838C64)' @ 76207A - 命令失败'   (所有者:@ AFE99B)883517(2014-04-07 21:50:15,566)[主要] INFO   q.swt.shellActivation - shell已停用Shell {USERNAME -   SmartGit / Hg 5.0.8(仅限非商业用途)} @ AFE99B 883517   (2014-04-07 21:50:15,566)[主要] INFO q.swt.shellActivation - shell   激活Shell {命令失败} @ 838C64 883518(2014-04-07   21:50:15,567)[主要] INFO q.swt.shellActivation - 激活变化   来自Shell {USERNAME - SmartGit / Hg 5.0.8(用于非商业用途)   只有}} @ AFE99B到Shell {命令失败} @ 838C64 884870(2014-04-07   21:50:16,919)[主要]信息q.action - 表演' OK'   窗口中的按钮@ 838C64所有者@ AFE99B 884871(2014-04-07   21:50:16,920)[主要] INFO q.dialog - 显示对话框8   (@ 838C64)' @ 76207A - 命令失败' (所有者:@ AFE99B)884874   (2014-04-07 21:50:16,923)[主要] INFO q.swt.shellActivation - shell   已激活Shell {USERNAME - SmartGit / Hg 5.0.8(用于非商业用途)   只有)} @ AFE99B 884875(2014-04-07 21:50:16,924)[主要] INFO   q.swt.shellActivation - Shell的激活更改   { Disposed } @ 838C64 to Shell {USERNAME - SmartGit / Hg 5.0.8(for   仅限非商业用途)} @ AFE99B 885305(2014-04-07 21:50:17,354)   [主要] INFO q.swt.shellActivation - shell停用Shell   {USERNAME - SmartGit / Hg 5.0.8(仅限非商业用途)} @ AFE99B   885307(2014-04-07 21:50:17,356)[主要] INFO q.swt.shellActivation -   来自Shell的激活更改{USERNAME - SmartGit / Hg 5.0.8(for   仅限非商业用途)} @ AFE99B为null

这个问题并不是少数人声称重复的问题,因为我想知道如何通过SmartGit,而不是通过Git Bash。 SmartGit不提供cmd,或者至少我不知道它是。拥有如此众多声誉的人们可以让声誉得到满足,并且不再一起阅读;多么可惜。

1 个答案:

答案 0 :(得分:1)

log.txt包含:

! :refs/heads/BRANCH_NAME [remote rejected] (deletion prohibited)

已被Git(来自服务器)收到。这个问题可能与:

有关

how do I remove a remote branch when I get an error?

您应该从命令行看到相同的问题:

"C:\Program Files\Git\bin\git.exe" push --porcelain --progress --recurse-submodules=check origin :refs/heads/BRANCH_NAME