简体   繁体   English

git merge拉请求到私有仓库

[英]git merge pull request to private repository

I've cloned some repository from git (dannycoates/v8-profiler) and I have a linkage error while installing it. 我已经从git(dannycoates / v8-profiler)克隆了一些存储库,并且在安装它时出现了链接错误。 I saw that someone submitted a pull request which suppose to fix this bug. 我看到有人提交了一个拉动请求,该请求应解决此错误。 Now I want to try and pull this fix into my private local repo, and I was wondering which command to use. 现在,我想尝试将此修复程序放入我的本地私有仓库中,我想知道使用哪个命令。 The pull request is titled: 拉取请求的标题为:

piaohai wants to merge 38 commits into dannycoates:master  from piaohai:3.6.2

Can I use git pull in this case? 在这种情况下可以使用git pull吗? how should I use it? 我应该如何使用?

Thanks, Li 谢谢李

clone the repo where the pull request exists, fetch their branches, make sure you're on the same branch that they are specifying the request for (in this case, master), merge their changes. 在存在拉取请求的地方克隆仓库,获取它们的分支,确保您在他们指定请求的同一分支上(在本例中为master),合并其更改。

git remote add piaohai git://github.com/piaohai/v8-profiler.git
git fetch piaohai
git checkout master
git merge piaohai/3.6.2

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM