GIT问题
使用SourceTree报git -c diff.mnemonicprefix=false -c core.quotepath=false revert --no-edit错误
今天在向git上提交代码向回退的收出现了下面的错误:
git -c diff.mnemonicprefix=false -c core.quotepath=false revert --no-edit 7eb1df2ef63e99c55226eadd1a6a3d4e7e244fff error: commit 7eb1df2ef63e99c55226eadd1a6a3d4e7e244fff is a merge but no -m option was given. fatal: revert failed
解决方法有两个:
一、先将自己本地的代码commit之后,再进行你的操作就好了
二、删除本地的代码库,重新克隆一个不过前提是必须要保存好你修改的代码,重新克隆之后把修改好二代码天天加到项目中,在提交到git上)
相关推荐
formula 2020-11-12
huhongfei 2020-11-05
乾坤一碼農 2020-10-27
liumengyanysu 2020-10-22
E哥的aws认证攻略 2020-10-15
guying 2020-10-05
好脑筋不如烂笔头 2020-09-17
baolen 2020-08-15
Equation 2020-08-09
Balmunc 2020-08-02
fenggou 2020-07-18
zhangxing 2020-07-05
loganwz 2020-07-05
tianyafengxin 2020-10-08
nebulali 2020-09-11