随笔分类 -  GIT

使用git 统计补丁及代码量
摘要:统计补丁个数git shortlog --author="lihui@loongson.cn" --since=="2022-01-01" --until=="2023-07-1" --summary --numbered --email | awk '{print $1}' | awk '{sum 阅读全文

posted @ 2024-11-28 09:58 lh03061238 阅读(13) 评论(0) 推荐(0) 编辑

创建一个新的空分支,初始化后提交远程仓库
摘要:参考:https://worktile.com/kb/ask/249002.html ××××××××××××××××××××××××××××××××××××××××××× 阅读全文

posted @ 2024-11-02 10:59 lh03061238 阅读(38) 评论(0) 推荐(0) 编辑

git am 提示 trailing whitespace的处理方法
摘要:参考: https://blog.csdn.net/haoyujie/article/details/100014149 阅读全文

posted @ 2024-09-30 09:03 lh03061238 阅读(24) 评论(0) 推荐(0) 编辑

git 查看及修改文件格式
摘要:要查看Git仓库中文件的格式,可以使用git ls-files命令配合--eol选项。这将列出仓库中所有文件的行尾结束字符。 例如,要查看当前分支上所有文件的行尾格式,可以在终端中运行以下命令: git ls-files --eol 如果你想查看特定文件的格式,可以直接指定文件名: git ls-f 阅读全文

posted @ 2024-08-26 11:17 lh03061238 阅读(86) 评论(0) 推荐(0) 编辑

git设置、查看和删除配置项
摘要:参考; https://baijiahao.baidu.com/s?id=1761625143854586276&wfr=spider&for=pc 阅读全文

posted @ 2024-08-23 17:16 lh03061238 阅读(7) 评论(0) 推荐(0) 编辑

git 解决 ^M 符号问题
摘要:参考: https://blog.csdn.net/Dontla/article/details/131250565 https://www.cnblogs.com/youpeng/p/11243871.html https://docs.github.com/zh/get-started/gett 阅读全文

posted @ 2024-08-23 16:34 lh03061238 阅读(23) 评论(0) 推荐(0) 编辑

Support for password authentication was removed on August 13, 2021
摘要:https://blog.csdn.net/qq_37255976/article/details/134558484 https://zhuanlan.zhihu.com/p/401978754 阅读全文

posted @ 2024-04-29 10:33 lh03061238 阅读(6) 评论(0) 推荐(0) 编辑

github操作方法汇总(含pr合入)
摘要:git、github保姆级教程(手把手交)以及如何在github上提交pr,参与开源项目 https://blog.csdn.net/qq_39350172/article/details/125322895 github Pull Request合入全流程介绍 https://www.cnblog 阅读全文

posted @ 2024-01-31 16:37 lh03061238 阅读(29) 评论(0) 推荐(0) 编辑

github加速访问
摘要:来源:https://github.com/521xueweihan/GitHub520/blob/main/README.md 2.1 手动方式 2.1.1 复制下面的内容 # GitHub520 Host Start 140.82.113.25 alive.github.com 140.82.1 阅读全文

posted @ 2024-01-31 16:03 lh03061238 阅读(46) 评论(0) 推荐(0) 编辑

GitHub Pull request 同步解决代码冲突
摘要:参考: https://zhuanlan.zhihu.com/p/337949346 git remote -vgit remote add upstream git@gitee.com:src-anolis-os/bpftrace.gitgit remote -vgit fetch upstrea 阅读全文

posted @ 2024-01-11 14:44 lh03061238 阅读(36) 评论(0) 推荐(0) 编辑

linux GIT报“fatal: previous rebase directory .git/rebase-apply still exists but mbox given.”解决方法
摘要:在git am 某个PATCH时报如下 错误: "fatal: previous rebase directory .git/rebase-apply still exists but mbox given." 由于之前执行git am失败过, 所以需要执行git am --abort 阅读全文

posted @ 2024-01-10 11:17 lh03061238 阅读(838) 评论(0) 推荐(0) 编辑

git出现Your branch and ‘origin/master‘ have diverged解决方法
摘要:https://blog.csdn.net/raoxiaoya/article/details/121785190 https://blog.csdn.net/d6619309/article/details/52711035 阅读全文

posted @ 2023-07-07 14:30 lh03061238 阅读(445) 评论(0) 推荐(0) 编辑

warning: 远程 HEAD 指向一个不存在的引用,无法检出(warning: remote HEAD refers to nonexistent ref, unable to checkout)
摘要:参考:https://blog.csdn.net/williamvon/article/details/71421810 阅读全文

posted @ 2023-07-07 11:12 lh03061238 阅读(508) 评论(0) 推荐(0) 编辑

git统计补丁个数和代码行数
摘要:统计补丁个数git shortlog --author="name@...cn" --summary --numbered --email | awk '{print $1}' | awk '{sum+=$1}END{print sum}' 统计代码行数git log --author="name@ 阅读全文

posted @ 2023-03-04 09:43 lh03061238 阅读(67) 评论(0) 推荐(0) 编辑

使用井号 (#) 开始 git commit 消息
摘要:https://www.it1352.com/2639574.html 阅读全文

posted @ 2023-02-24 14:57 lh03061238 阅读(723) 评论(0) 推荐(0) 编辑

Git操作—— git add --all、git add.、git add * 的区别(转)
摘要:原文:https://blog.csdn.net/W664160450/article/details/123715481?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~defa 阅读全文

posted @ 2023-02-06 20:28 lh03061238 阅读(368) 评论(0) 推荐(0) 编辑

github等的参与方式
摘要:万字干货,手把手教你在 GitHub 上优雅的提交 PR https://www.modb.pro/db/485947 Github参加开源项目提交PR教程 https://zhuanlan.zhihu.com/p/476477541 修改PR时,如何只提交一个commit https://blog 阅读全文

posted @ 2023-01-11 11:36 lh03061238 阅读(56) 评论(0) 推荐(0) 编辑

thunderbird发送纯文本邮件
摘要:向邮件列表中发邮件时,要求邮件格式必须是纯文本格式的,在thunderbird中,邮件格式(plain text或者html格式)在【工具->账户设置->[账户名称]->通讯录】下的“以HTML格式编写消息”中设置,英文版此开关的位置是【Tools -> Account Settings -> [A 阅读全文

posted @ 2022-12-19 16:11 lh03061238 阅读(208) 评论(0) 推荐(0) 编辑

gnutls_handshake() failed: Error in the pull function.
摘要:https://blog.csdn.net/lfc2017/article/details/123343057 https://blog.csdn.net/weixin_45747546/article/details/122958544 阅读全文

posted @ 2022-12-19 10:26 lh03061238 阅读(696) 评论(0) 推荐(0) 编辑

gitlab参与方式
摘要:Git开发指南(涵盖GitLab的merge request(简称:mr)) https://blog.csdn.net/Koren_Wei/article/details/84975508?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_rel 阅读全文

posted @ 2022-12-15 19:34 lh03061238 阅读(38) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示