如何删除Github桌面上的本地分支? [英] How do I delete a local branch on Github Desktop?

查看:1397
本文介绍了如何删除Github桌面上的本地分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上周我将Windows Github升级到

解决方案

这是我从github CS获得的答案,


Thu 2015-08-13 3:38 PM您好Daniel,
对不起!我们将添加选项以在即将发布的版本中删除分支。然而,现在,您可以从Git Shell中删除一个分支:
在GitHub桌面中打开〜在Git Shell中打开存储库
运行'git branch -d branch_name'
当你创建一个新的分支时,你应该看到一个选项,直接在比较图中发布它。
让我知道,如果这没有意义,或者如果您有更多的问题 - 感谢和抱歉造成的不便!
Robert


我注意到在删除本地分支之间有一个延迟(大约2或3分钟) shell和git桌面实现了这一变化。

UPDATE

在3.0.5中,他们添加了从当前分支删除齿轮菜单。

Last week I upgraded my Windows Github to Github Desktop.

It is certainly a lot faster than that last update they made for Github Windows. It also has a nice little visual timeline of commits and maybe I am being dumb, but the ability to delete local branches seems to be gone.

Before it was under "manage branches" (also gone). Any idea?

Update:

In v3.0.5 they have added the option to delete local branches from the gear menu.

解决方案

Here's the answer I got from github CS when I contacted them about this:

Thu 2015-08-13 3:38 PM Hi Daniel, Sorry about that! We'll be adding the option to delete branches back in an upcoming release. For now however, here's how you can delete a branch from the Git Shell: Hit ~ in GitHub Desktop to open up the repository in the Git Shell Run 'git branch -d branch_name' When you create a new branch you should see an option to publish it directly in the comparison graph. Let me know if that doesn't make sense or if you have more questions - thanks and sorry for the inconvenience! Robert

I've noticed there is a delay (about 2 or 3 minutes) between deleting the local branch in the shell and git desktop realizing the change.

UPDATE

In 3.0.5 They added Delete the current branch from the gear menu.

这篇关于如何删除Github桌面上的本地分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆