小编dmb*_*dmb的帖子

Git推上游

我已经尝试过寻找答案,但找不到合适的答案.

我正在运行下面的代码.

git fetch upstream  # get the latest copy from master / upstream
git merge upstream/master  # merge the downloaded copies and merge to your copy
git commit -am"test"  # commit your latest changes
git push origin master  # push to your fork
git push upstream  # push to master copy from where you forked your project - is this safe?
Run Code Online (Sandbox Code Playgroud)

推送到上游(git push upstream)是否安全?我的主要目标是将我的更改从我的fork应用到主项目.还是有更好的方法?谢谢

git github

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

git ×1

github ×1