Github-提交PR指南

news/2024/11/14 16:48:59/

1. Fork你将要提交PR的repo

2. 将你fork下来的repo克隆到你的本地

git clone your_repo.git
Cloning into 'ultralytics'...
remote: Enumerating objects: 8834, done.
remote: Counting objects: 100% (177/177), done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 8834 (delta 91), reused 126 (delta 65), pack-reused 8657
Receiving objects: 100% (8834/8834), 4.78 MiB | 49.00 KiB/s, done.
Resolving deltas: 100% (5859/5859), done.

3. 对本地代码进行修改

4. 创建分支,以你更新的主题为名

cd ./repo
git checkout ORT-CPP

这么做是为了清晰明了,而不会是'your_repo/main'->'main_repo/main'这种容易混淆的PR形式.

5. 合并主仓更新

在你修改代码的时候,可能主仓已经进行了别的更新,合并了其他开发者的分支,所以在提交之前,需要再拉一次主仓代码防止冲突

git stash
git pull
git stash pop
git commit -am "ORT-CPP add the example table"
git push -f

(base) PS E:\project\Project_C++\ultralytics> git stash
Saved working directory and index state WIP on ORT-CPP: 51d4d69 Merge branch 'main' into ORT-CPP
(base) PS E:\project\Project_C++\ultralytics> git pull
Already up to date.
(base) PS E:\project\Project_C++\ultralytics> git stash pop
On branch ORT-CPP
Your branch is up to date with 'origin/ORT-CPP'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   examples/README.md

no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (624d556c338c43ad4f515a32595783f5ae3cf443)
(base) PS E:\project\Project_C++\ultralytics> git commit -am "ORT-CPP add the example table"
[ORT-CPP 131a8f9] ORT-CPP add the example table
 1 file changed, 1 insertion(+)
(base) PS E:\project\Project_C++\ultralytics> git push --set-upstream origin delete-unused-link
error: src refspec delete-unused-link does not match any
error: failed to push some refs to 'https://github.com/DennisJcy/ultralytics.git'
(base) PS E:\project\Project_C++\ultralytics> git push -f
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information.
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information.
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 12 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 461 bytes | 461.00 KiB/s, done.
Total 4 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (3/3), completed with 3 local objects.
To https://github.com/DennisJcy/ultralytics.git
   51d4d69..131a8f9  ORT-CPP -> ORT-CPP

6. 创建PR

进入你的Github主页,首先进入你fork下来的仓库

https://github.com/your_name/your_repo

 


http://www.ppmy.cn/news/729872.html

相关文章

耳机主动降噪测试(ANC)-耳机被动降噪测试(PNC),蓝牙耳机测试-

在现在的生活中&#xff0c;蓝牙耳机的应用已经越来越广泛。人们已经不再习惯于经常将手机放在耳边接听电话&#xff0c;在工作时&#xff0c;开车时&#xff0c;运动时&#xff0c;只需要戴上一个蓝牙耳机&#xff0c;就能一键接听电话&#xff0c;为人们的生活提供了极大的便…

antv-x6在vue中使用:拖拽 Dnd、Stencil——以小诺管理平台为例

1、说明 由于antv-x6刚刚开放不久,一方面网上资料很少,此外antv目前官方的实例基本都是以react作为demo进行演示,所以vue的示例几乎没有,自己按照官方文档的react写了一个vue版本,仅供参考。 2、效果 先看一下demo的效果,如下所示 这是官方网文档的效果,同时官方也给…

element 表格去掉下边框

去掉表格内容的下边框 .expand_table td,.expand_table th.is-leaf{ border-bottom: none; } 去掉表格外层的下边框 .expand_table::before{ height: 0; }

怎么样去掉EXCEL表格里的虚线?

工具–选项–视图–窗口选项–把自动分页符选项前的勾去掉试试

word中如何隐藏表格线框

选定表格后,表格菜单中的表格属性,有边框中设置相应的边框为无,再在表格菜单中设置隐藏虚框 . (虚框构成了单元格的边框&#xff0c;且不能打印。所有的表格 &#xff08;表格&#xff1a;表格由一行或多行单元格组成&#xff0c;用于显示数字和其他项以便快速引用和分析。表格…

fastadmin使用phpexcel导入日期打印出来却是数字(45108)----已解决

问题&#xff1a;使用phpexcel导入文件日期格式的自动转换成数字了&#xff0c;如&#xff1a;45108代表的是2023-7-1 解决方法&#xff1a; 解释&#xff1a;为什么要 trim ----》修整数据 减去25569 ----》因为excel中的时间是从1900年开始的&#xff0c;而转换成文本类…

element 去掉表格底部白线

使用elementui 的表格&#xff0c;底部会出现一条白线&#xff0c;想要取消&#xff0c;可以在表格的伪类里面修改 代码如下 .el-table::before {height: 0px;}

如何去掉input文本域选中后会出现蓝边框

想要将inptut文本域的蓝色外框去掉&#xff0c;设置自己的样式&#xff0c;需要在你想要改变标签的样式中 代码如下 outline: 0; border-radius: 10px; border: 1px #CFCDCC solid; 效果如下&#xff1a; 同时设置这个三个属性样式就可以去掉了&#xff0c;并且出现自己想要设…