Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git: How to restore a repo from a single .git folder [duplicate]

Tags:

git

I've got my hands on a .git folder from a GitLab server that crashed. I need to restore this repo from this lone .git folder. Is this possible?

like image 656
ichigolas Avatar asked Jan 30 '23 19:01

ichigolas


1 Answers

Just clone from the .git folder

git clone .git my-repo
like image 59
Kevin Smith Avatar answered Feb 05 '23 14:02

Kevin Smith