![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
dzdffg
菜鸟程序员一枚 ,正在升级中!
展开
-
git运行报错fatal: open /dev/null or dup failed: No such file or directory git Bash 闪退
git莫名运行报错fatal: open /dev/null or dup failed: No such file or directory git Bash 闪退 搜索查询到原因及解决方案: “C:\Windows\System32\drivers\null.sys 文件损坏” 删除本地 null.sys,从网上下载或者从别电脑中拷贝 null.sys文件 放到对应目录下,重启电脑,再次运行git,成功。 删除null.sys文件时可能会碰到 需要trustedins...原创 2020-06-05 16:29:14 · 271 阅读 · 0 评论 -
commit之后,想撤销commit
原文地址:https://blog.csdn.net/w958796636/article/details/53611133 写完代码后,我们一般这样 git add . //添加所有文件 git commit -m "本功能全部完成" 执行完commit后,想撤回commit,怎么办? 这样凉拌: git reset --soft HEAD^ 这样就成功的撤...转载 2019-07-23 16:37:37 · 226 阅读 · 0 评论