吉拉(Jira):将现有的git分支分配给问题 [英] Jira: assign an existing git branch to an issue

查看:179
本文介绍了吉拉(Jira):将现有的git分支分配给问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在与STASH连接的JIRA中,您可以使用创建分支"按钮为问题创建特征分支. (很高兴跟踪本期中的提交.)

In JIRA connected with STASH you can create a feature branch for an issue using the button 'create branch'. (That is nice to track the commits in this issue.)

如果开发人员开始工作但不知道存在此类问题,则不要单击创建分支".

If a developer started working but did not know that there is such an issue he did not click the 'create branch'.

是否有可能将现有的git分支分配给问题?

Is there any possibility to assign an existing git branch to an issue?

推荐答案

此处是Ex-Stash开发人员.

ex-Stash developer here.

是,不是.通过UI创建分支只是一种方便.重要的是该名称包含JIRA键.如果只有一个开发人员在分支上工作,只需使用适当的名称来重命名(删除+添加)分支就很容易了.

Yes and no. Creating the branch though the UI is just a convenience. The important thing is that the name contains the JIRA key. If only one developer is working on the branch, it's fairly easy to just rename (delete + add) a branch with the appropriate name.

git checkout old-branch
git push -u origin old-branch:JIRAKEY-1234-something
git push origin :old-branch

有帮助吗?

这篇关于吉拉(Jira):将现有的git分支分配给问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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