Azure DevOps / GIT - 完成拉取请求后,如何删除本地分支? [英] Azure DevOps/GIT - after Completing a pull request, how to delete local branch?

查看:747
本文介绍了Azure DevOps / GIT - 完成拉取请求后,如何删除本地分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

情况:



1)我创建了一个代码审查的拉取请求,以将我的dev分支合并为master。


2)在AzureDevops web远程仓库上我应用了所有代码反馈并完成了拉取请求


3)我的dev分支被合并为master并且它消失了来自网络远程仓库(好)


但是我仍然可以在我的本地机器上看到它,当我在我的本地机器上查看主机并运行

 git pull 

,它不会拉动远程合并到master中的更改。



我该如何反映本地机器上遥控器的情况?



谢谢!


解决方案

嗨  DataCow,


以下链接对您有所帮助。


删除远程回购后的本地Git分支


最好的问候,


Mona Lv


Situation:

1) I created a pull request for a code review to merge my dev branch into master.

2) on AzureDevops web remote repo i applied all code feedback and Completed the pull request

3) my dev branch got merged into master and it disappeared from the web remote repo (good)

But i can still see it on my local machine and when I check out master on my local machine and run

git pull

, it won't pull the changes that were merged into master remotely.

What should I do to reflect the situation on remote on my local machine?

Thanks!

解决方案

Hi DataCow,

The following link would be helpful for you.

Delete local Git branches after deleting them on the remote repo

Best Regards,

Mona Lv


这篇关于Azure DevOps / GIT - 完成拉取请求后,如何删除本地分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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