我试图为此寻找答案,但找不到直接的答案。
我正在运行下面的代码。
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?
推送到上游(git push upstream
)是否安全?我的主要目标是将我的更改从我的 fork 应用到主项目。还是有更好的方法?谢谢