开发者

iPhone : Error while trying to change any file name or add new file in project

开发者 https://www.devze.com 2023-03-26 17:51 出处:网络
I am getti开发者_StackOverflowng following errors while I am trying to change any file name or try to add any new file in my project.

I am getti开发者_StackOverflowng following errors while I am trying to change any file name or try to add any new file in my project.

   Error : Bad Signature;
   Fatal : index file corrupt

What should I do ?


Remove the index with below command,

$ rm -f .git/index

then restore index to version in the last commit:

$ git reset

Or you can use lower level (plumbing) 'git read-tree' instead of 'git reset'. make a backup copy if you want, before removing index

0

精彩评论

暂无评论...
验证码 换一张
取 消