git - VS代码: View git remote changes before pull request?

标签 git visual-studio-code

嗨,我是 VScode 的新手,在 pull 请求之前查看 git 上的远程更改有什么办法吗? ,我找到了 Git History 扩展,但它仅适用于本地更改。不比较远程和本地文件,请有人建议我。

最佳答案

您可以使用 VSCode 插件比较分支(包括远程跟踪分支)Git Lens , as shown here .

但是,如果您想比较传入的 pull 请求,请不要忘记 add refs/pull rules ,以便 VSCode 获取所述 PR,并让您将它们与您的分支进行比较。

关于git - VS代码: View git remote changes before pull request?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60161687/

相关文章:

php - 如何让自己摆脱 FTP 而转而使用版本控制

git - "Merged in"是由 bitbucket 还是 git 创建的提交消息?

python - 如何通过命令行在 VS Code 中访问更新的 Python 3.9?

macos - vscode 设置终端 gopath 以匹配 go.gopath

python - 如何强制 MS Visual Code 使用 python 2.7

Git push 不上传 .git 目录

git - 为什么调用 git branch --unset-upstream 来修复?

javascript - Visual Studio Code,调试 Node - 我怎样才能打到这个 'Unverified Breakpoint' ?

visual-studio-code - VS 代码自动更正

git - 如何在 GitHub 上运行 post-receive hook