Fix issue fatal: Failed to resolve HEAD as a valid ref

0 votes
added Feb 23, 2018 in Git by LC Marshal Captain (25,790 points)
  1. git clone the same project to new folder to your local. e.g git clone https://[email protected]/myrepo/folder.git new-folder
  2. Copy the .git folder of the new cloned project into your problem directory - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.