git Unstaged changes after reset
来源:互联网 发布:苹果手机信号增强软件 编辑:程序博客网 时间:2024/06/02 02:48
相信大家都做过这个操作,就是本地做了修改后,不想提交,想恢复如初
git reset head
这样的话,我们就可以回到开始了。但这个操作好像仅限于在master之类的分支上,如果是在一个新的远程分支,就会出现:
Unstaged changes after reset
解决的办法如下2中办法:
1.git add .
git reset --hard
2.git stash
git stash drop
出现这种现象的原因好像是因为在新分支上,repos感知不到这个阶段的改变,你要用 add 或 stash, 让其知晓,才能做想要的回滚。
1 0
- git Unstaged changes after reset
- Discard Unstaged Changes in GIT
- Git Cannot rebase: You have unstaged changes.
- git pull --rebase 做了什么? 以及 Cannot rebase: You have unstaged changes 解决办法
- git pull --rebase 做了什么? 以及 Cannot rebase: You have unstaged changes 解决办法
- git 报错 How do I remove files saying “old mode 100755 new mode 100644” from unstaged changes in Git?
- How do I remove files saying “old mode 100755 new mode 100644” from unstaged changes in Git?
- Eclipse中通过git插件提交代码Unstaged Changes未提交列表中忽略不必要文件(持续更新中)
- After Reset
- git reset
- git reset
- git reset
- git reset
- git reset
- git reset
- git reset
- git reset
- git reset
- RMQ 模板
- 菜鸟的Node.js之旅
- rk3288 root
- [Java代码] INI文件操作Java类库 [ini4j]
- 举办cuda竞赛-有感
- git Unstaged changes after reset
- 关于有偿提供拼图响应式后台的通知
- 【APUE】2、第二章UNIX标准及实现
- 【Android开发那点破事】实现打电话功能
- 配置tomcat字符集
- spring 有参构注入对象。
- 汉字转拼音输出 开源框架
- strcpy源代码汇总
- 进击的KFC:UI(八)导航试图控制器,传值