I ran the git --bare init in a wrong directory(in the server). I see the files branches, config, deps etc., in that directory.. How do I undo it?
I ran the git –bare init in a wrong directory(in the server). I see
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Since you performed a ‘–bare’ init, there is no .git directory – instead the normal contents of the .git directory are directly in the parent directory. For example, the place where you did ‘git init –bare’ looks something like:
to undo this simply perform:
Of course, be careful if you already had files and directories there with those names.