如何使用 VSCODE 编辑器在 github 上创建 PR(拉取请求)

问题描述 投票:0回答:1

我有一个分支

feature-atm
,我所做的更改未反映在
main
分支上。我尝试按照以下步骤保持我的
feature-atm
分支与主分支同步 ->

In visual studio code, use source control icon -> click Pull from -> click the repository path -> click master branch name.

At bottom of the visual studio code click on sync option to pull and push changes to feature branch.

This will update feature branch with master branch code.

main
分支有保护规则,需要提出 PR# 并在我从
feature-atm
所做的更改反映到
main

之前获得批准。

如何在 vscode 中提出此 PR# 和 PR 编号(最好使用 UI),以便我对

feature-atm
的更改反映在
main
分支一上,PR#(拉取请求编号)得到批准者的批准。

git visual-studio-code git-branch pull-request
1个回答
0
投票

使用 GitHub Pull Request 扩展,然后按照此处的说明进行操作 https://code.visualstudio.com/docs/sourcecontrol/github#_creating-pull-requests

© www.soinside.com 2019 - 2024. All rights reserved.