Reputation: 3262
The project on gilab is contained in the spend folder.
I'm creating an empty folder at my local and run git init
.
Then I execute the command git clone <repo adress> .
With a dot at the end and get
fatal: destination path '.' already exists and is not an empty directory.
If I remove the dot at the end, the repository is uploaded to the subfolder.
spend
.git
spend
repo_file and folder
How can I do this without creating an extra folder?
Upvotes: 0
Views: 629
Reputation: 4494
Since this project already exists somewhere and you are getting it by git clone
, a previous step of git init
is not needed.
Thus, go to your directory, where you want the project folder to be, then do a simple git clone
.
Upvotes: 1