会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ysgd
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
git
git撤销commit
摘要:git commit之后,使用命令git reset HEAD^,会撤销到add以前:
阅读全文
posted @
2023-05-04 15:28
妖山鬼店
阅读(24)
评论(0)
推荐(0)
撤销git add .
摘要:git reset HEAD
阅读全文
posted @
2023-05-04 15:14
妖山鬼店
阅读(18)
评论(0)
推荐(0)
git branch -a不显示master分支
摘要:一种可能性是新建仓库后,没有对master进行操作,比如,增加文件、删除文件、修改文件等,导致master分支为空,就不显示了。
阅读全文
posted @
2023-05-04 15:07
妖山鬼店
阅读(49)
评论(0)
推荐(0)
merge的不同情况:
摘要:1、场景1:同事修改了test.txt,提交到远程。我修改了test.txt,接着马上输入git pull(没有commit),出现提示: 问题: error: Your local changes to the following files would be overwritten by mer
阅读全文
posted @
2023-05-04 14:30
妖山鬼店
阅读(62)
评论(0)
推荐(0)
公告