V
V
Vitya Podpriklopolny2018-12-16 15:01:25
git
Vitya Podpriklopolny, 2018-12-16 15:01:25

How to initialize a git repository in a specific folder?

Hi
In general, an empty repository is already on the github.
I have a working folder in which the entire project is already in it.
I need to somehow initialize this folder through the console (so that it thinks that my working folder is the root folder of the repository) (need via ssh)
How can I do this? Can you please explain your commands)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2018-12-16
@megamage

cd project_path
git remote add origin [email protected]_repo.git
git push -u origin master

H
Helow19274, 2018-12-16
@Helow19274

cd папка
git clone https://github.com/репозиторий.git

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question