Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Failed to resolve HEAD as a valid ref In GIT

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 9.31k
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: