E
E
EYPPNM2019-04-13 20:14:41
git
EYPPNM, 2019-04-13 20:14:41

How to NOT create a folder in git clone?

If git clone git://github.com/schacon/grit.gitthen the grit folder will be created
If git clone git://github.com/schacon/grit.git mygritthen the mygrit folder will be created
How to do it if I do NOT want the folder to be created, I am already in the folder from which I launched bash, and I just want the .git folder to appear next to the files without nesting

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2019-04-13
@inoise

Clone does not work with already created directories. You can do git init then add origin then pull or fetch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question