3

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

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thx! It works after git config remote.origin.url https://[email protected]/your/example.git

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.