A
A
Automat2018-02-20 16:12:15
git
Automat, 2018-02-20 16:12:15

How to pull in git to the same folder, and not to a subfolder?

I go into the folder and do
git init
it. .git appears in the folder. Ok, now we do it. The repo project appears in the folder, but it also has a .git folder. Of course, you can manually delete all this and raise the files one level up ... but ... How can I immediately pull the project to the folder where I am now and where did git init ? (the .git folder must be overwritten with new data from the repository)
git clone https://github.com/user/repo.git

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2018-02-20
@nomotrack

You don't need to do a git init to clone ! And for the future, git has good documentation. Try first git command --help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question