Answer the question
In order to leave comments, you need to log in
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
cd project_path
git remote add origin [email protected]_repo.git
git push -u origin master
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question