简体   繁体   English

如何在bitbucket git中删除与develop合并的分支?

[英]How to remove a branch merged with develop in bitbucket git?

This is a question on Bitbucket/git. 这是关于Bitbucket / git的问题。 Let's say you have created a feature branch from develop branch. 假设您已经从develop分支创建了一个feature分支。 Let me call the branch feature/newBranchA . 让我称它为branch feature/newBranchA

I did git pull request, and merged it to develop branch. 我做了git pull请求,并将其合并以开发分支。

However, now I want to get rid of the commits from the newBranchA , aka I want develop to remove the commit. 但是,现在我想摆脱newBranchA的提交,也就是想删除该提交。

I realize we can do a git reset hard. 我意识到我们可以辛苦地进行git reset。 However, is it possible to do such from Bitbucket from the GUI interface? 但是,是否可以从GUI界面的Bitbucket中执行此操作? Is it possible to do similar from TortoiseGit? 是否可以从TortoiseGit做类似的事情?

If you want to remove commits coming from a merged branch, there is a brilliant answer here: Undo a Git merge that hasn't been pushed yet 如果要删除来自合并分支的提交,这里有一个绝妙的答案: 撤消尚未推送的Git合并

It is not possible to undo a merge in Bitbucket's interface, and as far as I know Tortoise does not support that either. 在Bitbucket的界面中无法撤消合并,据我所知,Tortoise也不支持。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从Git / Bitbucket中的开发中删除功能分支 - How to remove feature branch from develop in Git/Bitbucket 如果您已经将文件推送到远程分支,合并到开发分支并且它不是最新提交,如何从 git 中完全删除文件 - How to completely remove a file from git if you already pushed it to the remote branch, merged to the develop branch and it is not the latest commit 如何从bitbucket中删除git远程分支? - How to remove the git remote branch from bitbucket? 更改显示在 DEVELOP 分支中,但它们已存在于 GIT Bitbucket 的 DEVELOP 分支中 - Changes are shown in DEVELOP branch but they are already exists in DEVELOP branch in GIT Bitbucket 如何停止与开发分支合并的分支与主分支合并? - How to stop a branch merged with develop branch to be merged with master branch? 如何在BitBucket / Git中的develop分支中创建master分支? - How can I create a master branch from my develop branch in BitBucket/Git? 不知怎的,我的git develop分支被合并到我的主分支中 - Somehow my git develop branch got merged into my master branch git / gerrit阻止开发分支合并到稳定/测试分支 - git / gerrit prevent develop branch to be merged into stable / testing branch 如何在Git中提取和删除合并的分支? - How do I extract and remove a merged branch in Git? bitbucket 如何将分支从“合并”返回到“活动” - bitbucket how to return branch from “merged” into “active”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM