R
R
Rapen2018-08-15 14:14:11
git
Rapen, 2018-08-15 14:14:11

How to login to github with git bash?

I want to create a repository through the console, and upload files there, but authorization is required (that is, where exactly to upload), I enter the command

curl -u 'мой логин' ttps://api.github.com/логин/repos -d'{"name":"имя репо"}'

Nothing further happens, but the line ENTER PASSWORD should be displayed, but this does not happen.
What is the reason? What other authorization methods are there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gleb Starkov, 2018-08-15
@Rapen

It is better to create private and public keys with the command:
Do not enter anything, constantly press Enter for all questions
Then add an ssh key on the github, which will be in home_dir/.ssh/id_pub.rsa
After that, it will start up without login and password

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question