摘要:git rm --cached readme1.txt 删除readme1.txt的跟踪,并保留在本地。 git rm --f readme1.txt 删除readme1.txt的跟踪,并且删除本地文件。 转自:https://www.cnblogs.com/zhuchenglin/p/712838
阅读全文
随笔分类 - Git 使用
摘要:Bug分支 - 廖雪峰的官方网站 (liaoxuefeng.com) https://www.liaoxuefeng.com/wiki/896043488029600/900388704535136
阅读全文
摘要:https://blog.csdn.net/yxlshk/article/details/79944535
阅读全文
摘要: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
阅读全文
摘要:通过git blame命令,我们可以查出某个文件的每一行内容到底是由哪位大神所写。 http://www.zhai14.com/blog/git-blame-command-help-u-find-out-who-made-the-serious-mistake.html
阅读全文
摘要:http://www.javashuo.com/article/p-ktsgokmk-kp.html https://www.fengpengjun.com/archives/160
阅读全文
摘要:转自 https://www.cnblogs.com/yssjun/p/10145864.html
阅读全文
摘要:简单点 git reset --hard git push --force 但是据说会存在问题。后面细究。
阅读全文
摘要:https://blog.csdn.net/kunyus/article/details/93472646 WIP Work in progress, do not merge yet. // 开发中LGTM Looks good to me. // Riview 完别人的 PR ,没有问题PTAL
阅读全文
摘要:因为远程仓库里 HEAD 文件 ref: refs/heads/xxxx xxxx 不存在,修改为存在的,或者 git checkout master
阅读全文
摘要:强制合并 git pull origin master --allow-unrelated-histories
阅读全文
摘要:git archive -o ../updated.zip HEAD $(git diff --name-only HEAD^)
阅读全文
摘要:字面让人迷惑 Fetch 提取 Pull 拉取:fetch + merge
阅读全文
摘要:git clone --bare my_project my_project.git git init --bare git remote add origin URL
阅读全文

浙公网安备 33010602011771号