5free

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  Git 使用

摘要:git rm --cached readme1.txt 删除readme1.txt的跟踪,并保留在本地。 git rm --f readme1.txt 删除readme1.txt的跟踪,并且删除本地文件。 转自:https://www.cnblogs.com/zhuchenglin/p/712838 阅读全文
posted @ 2023-03-16 12:50 5free 阅读(48) 评论(0) 推荐(0)

摘要:git push --tags git fetch --tags 阅读全文
posted @ 2021-09-16 17:33 5free 阅读(36) 评论(0) 推荐(0)

摘要:遇到几次,被同事覆盖代码更新,导致自己的更新被删除。 阅读全文
posted @ 2021-09-14 17:58 5free 阅读(73) 评论(0) 推荐(0)

摘要:能否忽略空行? 阅读全文
posted @ 2021-09-14 15:09 5free 阅读(90) 评论(0) 推荐(0)

摘要:Bug分支 - 廖雪峰的官方网站 (liaoxuefeng.com) https://www.liaoxuefeng.com/wiki/896043488029600/900388704535136 阅读全文
posted @ 2021-08-27 10:03 5free 阅读(53) 评论(0) 推荐(0)

摘要:https://blog.csdn.net/yxlshk/article/details/79944535 阅读全文
posted @ 2021-08-19 00:27 5free 阅读(46) 评论(0) 推荐(0)

摘要:https://www.scootersoftware.com/support.php?zz=kb_vcs Diff At a Windows command prompt, enter the commands: git config --global diff.tool bc git confi 阅读全文
posted @ 2021-08-14 00:10 5free 阅读(149) 评论(0) 推荐(0)

摘要:通过git blame命令,我们可以查出某个文件的每一行内容到底是由哪位大神所写。 http://www.zhai14.com/blog/git-blame-command-help-u-find-out-who-made-the-serious-mistake.html 阅读全文
posted @ 2021-08-13 19:05 5free 阅读(190) 评论(0) 推荐(0)

摘要:http://www.javashuo.com/article/p-ktsgokmk-kp.html https://www.fengpengjun.com/archives/160 阅读全文
posted @ 2021-08-13 13:51 5free 阅读(968) 评论(0) 推荐(0)

摘要:转自 https://www.cnblogs.com/yssjun/p/10145864.html 阅读全文
posted @ 2021-08-10 11:12 5free 阅读(56) 评论(0) 推荐(0)

摘要:简单点 git reset --hard git push --force 但是据说会存在问题。后面细究。 阅读全文
posted @ 2021-07-28 17:49 5free 阅读(46) 评论(0) 推荐(0)

摘要:https://blog.csdn.net/kunyus/article/details/93472646 WIP Work in progress, do not merge yet. // 开发中LGTM Looks good to me. // Riview 完别人的 PR ,没有问题PTAL 阅读全文
posted @ 2021-07-26 14:29 5free 阅读(432) 评论(0) 推荐(0)

摘要:因为远程仓库里 HEAD 文件 ref: refs/heads/xxxx xxxx 不存在,修改为存在的,或者 git checkout master 阅读全文
posted @ 2021-06-17 16:15 5free 阅读(518) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2021-06-16 22:45 5free 阅读(97) 评论(0) 推荐(0)

摘要:<todo> 阅读全文
posted @ 2021-06-16 22:04 5free 阅读(168) 评论(0) 推荐(0)

摘要:强制合并 git pull origin master --allow-unrelated-histories 阅读全文
posted @ 2021-06-16 22:02 5free 阅读(36) 评论(0) 推荐(0)

摘要:git archive -o ../updated.zip HEAD $(git diff --name-only HEAD^) 阅读全文
posted @ 2021-06-14 18:59 5free 阅读(137) 评论(0) 推荐(0)

摘要:字面让人迷惑 Fetch 提取 Pull 拉取:fetch + merge 阅读全文
posted @ 2021-06-11 23:24 5free 阅读(2405) 评论(0) 推荐(0)

摘要:git clone --bare my_project my_project.git git init --bare git remote add origin URL 阅读全文
posted @ 2021-06-11 01:27 5free 阅读(678) 评论(0) 推荐(0)