Answer the question
In order to leave comments, you need to log in
Clone a new repository from local to GitHub?
Created a local project. Can it be cloned to GitHub now? How to do this through the terminal, given that it is configured to work through an SSH key?
Of course, you can create a new repository on GitHub, copy the project files into it with your hands, then clone it to the local area. But maybe there are some commands for this? After all, GitHub does not like to upload a large number of files, and, for example, uploading the node_modules folder is even a little hell.
Answer the question
In order to leave comments, you need to log in
go to github, create a new repository
then on the local in the master branch
git remote add origin [email protected]:username/my_repository.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