O
O
onogur2014-04-10 14:56:13
git
onogur, 2014-04-10 14:56:13

Git. How to clone a repository to the current folder?

How to clone a repository in git to the current folder, i.e. without creating a folder named repository?
Tried like this: git clone https://[email protected]/user/rep.git .
Does not work. Maybe there is some way?

Answer the question

In order to leave comments, you need to log in

8 answer(s)
W
Whitemaster, 2018-03-05
@Whitemaster

git init
git remote add origin https://[email protected]/user/rep.git ./

R
rsludge, 2014-04-10
@rsludge

your command is correct, but it may not work if the directory is not empty, git does not allow cloning to a non-empty directory

I
Igor Buksha, 2017-07-17
@ripdamage

git clone https://[email protected]/user/rep.git ./

A
AS Borzakovsky @AS, 2015-07-26
Borzakovsky

The dot is separated by a space, and there should be nothing in the directory.

D
Don Diablo, 2021-04-21
@ha-ha-ha777

I have a question:
I want to clone the repository, I enter the login and password from the github, and in response repository not found.
What am I doing wrong?

A
Andrey Burov, 2015-09-04
@BuriK666

You need mod_proxy

S
Sergey Zelensky, 2015-09-04
@SergeyZelensky-Rostov

make an index file on site1.ru insert this line into it

<iframe src="http://site2.ru" frameborder="0"></iframe>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question