怎么在GitHub上向开源库中提交代码
来源:互联网 发布:linux环境变量配置修改 编辑:程序博客网 时间:2024/04/26 06:10
怎么在GitHub上向开源库中提交代码
- fork想要提交代码的开源库的代码到自己的GitHub项目中
将自己fork后的代码clone到PC上. // remote origin
git clone https://github.com/xxx
添加开源库代码的GitHub路径到PC代码中的remote中. // remote upstream
git remote add upstream https://github.com/yyy
在本地代码中创建新分支
git checkout -b new-branch origin/master
修改代码
将本地新分支的代码提交到自己的GitHub上. // remote origin
git push origin new-branch
打开GitHub网站,进入到项目页,选择新提交的分支
点击页面左边Compare and Review按钮
在比较页中点击Create pull request
输入一个标题和描述内容
点击Create pull request
0 0
- 怎么在GitHub上向开源库中提交代码
- 如何向Github上提交代码
- 向GitHub上提交iOS代码
- 如何向Github上提交代码?
- 向Github提交代码
- 向GitHub 提交代码
- 向github提交代码
- 使用Git向Github上提交代码(Android)
- git 向 github 上提交
- github上提交代码
- 向GITHUB提交本地代码
- 如何向Github提交代码?
- 详解github(d)--向github提交代码
- GitHub系列----向GitHub提交代码
- 在android studio上使用git向github推送代码
- 向github上push代码
- 向github、coding上提交项目
- 如何向GitHub提交更改的代码
- 第二次作业 MySQL MySQL数据库操作
- 扑克游戏
- 黑马程序员——java基础知识之IO流(三)
- Android更新UI的四种方式
- 有关java调用Service接口
- 怎么在GitHub上向开源库中提交代码
- 第九周项目1-复数类中的运算符重载(续)
- 江城子·月上嫦娥
- 入行新人第一天
- MessageBox的常见用法
- HBase 列的详细解析
- Java提高 - 字符串循环移位
- Ajax发送与返回数据格式注意的要点总结
- 删除字符串中指定字符