Login
Remember
Register
References
Ranks
Add reference
Fix issue fatal: Failed to resolve HEAD as a valid ref
0
votes
2,492
views
added
Feb 23, 2018
in
Git
by
LC Marshal
Captain
(
25,790
points)
git clone
the same project to new folder to your local. e.g
git clone
https://
[email protected]
/myrepo/folder.git
new-folder
Copy the
.git
folder of the new cloned project into your problem directory
git
repository
problem
bitbucket
Related reference
Git - fix the 'error: cannot lock ref 'refs/remotes/origin/'
Git error - fatal: 'origin/[YOUR_BRANCH]' is not a commit and a branch '[YOUR_BRANCH]' cannot be created from it
Git error - (unable to update local ref
Git - fatal: unable to create 'refs/heads/master.lock' solution
How to checkout branch into local repository using command?
Git push: renaming branches
What's the different between SVN and Git?
Git error: src refspec refs/heads/master does not match any
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
All categories
API
(35)
React
(149)
Javascript
(100)
Next JS
(10)
jQuery
(176)
CSS
(141)
SCSS
(25)
UI design
(1)
Vue
(25)
JSX
(12)
ES6
(8)
Regex
(6)
PHP
(61)
mySQL
(9)
Drupal
(15)
Bootstrap
(22)
Repository
(41)
Git
(40)
Mercurial
(1)
Software & tools
(38)
Google tools
(28)
Plugins
(13)
Gulp
(9)
NPM
(9)
Node JS
(7)
CMS
(9)
Command-line
(7)
Database
(2)
Domain & hosting
(16)
Elixir
(1)
HTML
(21)
Networking
(4)
Python
(0)
Server issues
(12)
VM & Remote desktop
(2)
VSCode
(6)
Windows
(11)
XSLT
(5)
General
(868)
...