G
G
Garguly Magnievich2019-04-27 14:38:18
git
Garguly Magnievich, 2019-04-27 14:38:18

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

1 answer(s)
K
kova1ev, 2019-05-08
@chuanyurug

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

why load node_modules, package.json and package-lock.json are enough to download dependencies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question