There are a lot of feature / hotfix
Git branches I created from dev
branch and developed things and merged back to dev
branch. But, meanwhile I forgot to delete local feature / hotfix
branches after merging with the development dev
branch. I would be happy to know if there is a command which would list all the branch names that had been checked out from dev
branch initially and merged to dev
branch after its completion. Also, if possible fetch all the branches which are deleted remotely but not locally. Currently I am standing at dev
branch.
我从dev分支创建了很多功能/修补程序Git分支并开发了东西并合并回dev分支。但是,同时我忘了在与开发dev分支合并后删除本地功能/修补程序分支。我很高兴知道是否有一个命令会列出最初从dev分支检出的所有分支名称,并在完成后合并到dev分支。此外,如果可能,获取远程删除但不在本地删除的所有分支。目前我站在开发分公司。
I have used
我用过
git log dev --pretty=oneline --graph
git log dev --pretty = oneline --graph
command to see all merge and pull requests created from dev
branch. But then I needed to inspect to find out the branch names. If there is a specific command to output the branch names, it would have been better. Thank you for any help :)
命令查看从dev分支创建的所有合并和拉取请求。但后来我需要检查以找出分支名称。如果有一个特定的命令来输出分支名称,那就更好了。感谢您的任何帮助 :)
1 个解决方案
#1
1
You can find all branches that are fully merged with the dev
branch (including dev
itself) using
您可以使用找到与dev分支完全合并的所有分支(包括dev本身)
git branch --merged dev
#1
1
You can find all branches that are fully merged with the dev
branch (including dev
itself) using
您可以使用找到与dev分支完全合并的所有分支(包括dev本身)
git branch --merged dev