Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Clone .git repo into current dir, without touching files
I have git repo where the .git is deleted. I didn't realize it until after I made some changes to the code.
I want to re-create the
.git by cloning. However I don't want it to touch the files that I already have. When the
.git is cloned, I will run git checkout and it will detect my changes as normal.
What is the command to do this?