Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

github

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

like image 395
Big Shield Avatar asked Mar 04 '26 18:03

Big Shield


1 Answers

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.

like image 173
René Höhle Avatar answered Mar 06 '26 07:03

René Höhle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!