Git指南
删除文件后无法Pull
问题描述
解决方法
git fetch --all
git reset --hard origin/master
git pull
Pull卡死在进度条
问题描述
解决方法
Tortoisegit无法Clone
问题描述
解决方法
[http "https://github.com"]
proxy = socks5://127.0.0.1:10808
[user]
name = "bowjacon"
email = "2772408947@qq.com"
[core]
autocrlf = true
safecrlf = false
Git撤销未提交
问题描述
解决办法
- 需要撤销的内容文件属于未跟踪的状态
git clean -fdx
- 需要撤销的内容已被
git add
暂存,但未执行git commit
提交
git rm --cached -r .
# 或者使用
git reset
- 需要撤销的内容文件属于未跟踪的状态
git checkout .
- 已在版本库中的文件发生了变更、且已
git add
暂存
git reset
git checkout .
{% label 总结 blue %}
git reset
git checkout .
git clean -fdx
TortoiseGit密钥被拒
问题描述
解决办法