git remote add upstream https://github.com/apache/skywalking.git
git remote -v
git checkout -b fix_npe
git add .
git commit -m "fix_npe"
git push origin fix_npe `将当前分支推送到自己的远程仓库`
注意事项:
每次PR之前,首先与远程仓库做代码同步(刚才上面的远程仓库链接就是为了做远程代码同步)
git fetch upstream
git rebase upstream/master
git push origin master
push完后,远程仓库便可看到你的branch版本和master分支一致了,否则这个位置会显示与master相差了多少次commit。
原文:https://www.cnblogs.com/assasion/p/11436609.html