D
D
Dvorak2016-06-23 23:15:48
git
Dvorak, 2016-06-23 23:15:48

Why does git keep asking for username and password?

Good day. Git problem.
Ran the following commands:

git init
git add *
git commit -m 'text'
git remote add origin https://github.com/link
git push -u origin master

I entered my username and password, everything was successfully uploaded and committed. But now every time after git push -u the console requires login and password. This was not the case before. What is the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Sharihin, 2016-06-23
@Pinsky

log in with a certificate - there will be no problems at all

A
Alexander Semchenko, 2016-06-24
@0xcffaedfe

ssh-keygen -t rsa -C "[email protected]"
#copy ssh key to github.com
subl ~/.ssh/id_rsa.pub
#test connection
ssh -T [email protected]
#set git config values
​​git config --global user.name "your name"
git config --global user.email "[email protected]"
git config --global github.user nickname
git config --global github.token your_token_here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question