C
C
Crash2015-05-28 14:23:01
git
Crash, 2015-05-28 14:23:01

How to change the authorization protocol for an already cloned git repository?

I cloned the remote repository via https, now every time you run the git push command, you need to enter a username and password. How can I change the authorization protocol to ssh without cloning the repository again?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Shikanov, 2015-05-28
@Bandicoot

In the .git/config file, change the url in the [remote "origin"] section

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question