gitlab提交pull request
什么是Pull Request?
参考:https://zhuanlan.zhihu.com/p/347918608
怎么用
首先fork代码到自己仓库
克隆下来自己的仓库
git clone https://gitlab.XXX.git
git status查看当前在哪个分支
(假设默认为master,但是我们的主开发分支是develop)
切换到git checkout develop
git remote -v 查看当前分支建立了哪些链接(此时只有自己远程仓库)
还需要与上游建立连接,这里上游指的是一开始fork的那个项目源:
git remote add upstream https://gitlab.XXX.git
从上游拉取一下
git fetch upstream
合并一下
git rebase upstream/develop
参看https://blog.csdn.net/weixin_42310154/article/details/119004977
修改代码
git status
git add ***.py
git commit -m "***********"
git push origin develop
网友评论