I've deleted my composer.lock
file and didn't commit yet.
git checkout -- composer.lock
gives
error: pathspec 'composer.lock' did not match any file(s) known to git.
How do I restore the composer.lock
file?
I've deleted my composer.lock
file and didn't commit yet.
git checkout -- composer.lock
gives
error: pathspec 'composer.lock' did not match any file(s) known to git.
How do I restore the composer.lock
file?
Try git reset -- composer.lock
Also this a duplicate of this exact question. Please look here to get better insight.
Cheers