Sometimes Many of us have encountered an error mentioned below:
fatal: Failed to resolve HEAD as a valid ref.
This Situation might occur for various reasons (file corrupt, file override, etc).
Solution:
How, we resolve this issue as following:
- Clone your project from your git URL (that must be in another directory)
- Copy the .git folder from your cloned project.
- Replace it with the actual .git folder in which you were working.
Viola, That was easy !!!
0 Comment(s)