Big Shield
Big Shield

Reputation: 622

Is there a way to avoid inputting username when git push with HTTPS?

I just want to input the password only. Is there a way to avoid inputting username when git push with HTTPS?

Upvotes: 3

Views: 55

Answers (1)

René Höhle
René Höhle

Reputation: 27295

With Git 1.7 and higher you can define your username and password before the address. Something like that:

git config remote.origin.url https://you:[email protected]/your/example.git

then you can define your user and password and don't need to enter them every time.

Upvotes: 3

Related Questions