0

Is it possible to store a remote Git repo's user credentials on my local machine so I don't keep getting asked for them everytime I do a pull etc?

thanks

1

1 Answer 1

1

You need to use ssh keys and the git protocol (over ssh) when cloning:

git clone [email protected]:user/repo.git

If you are using github as git server, you can follow this documentation which describes how to create and use ssh keys.

If you cloned the repo already using the https protocol, you can change the origin following these steps:

git remote remove origin
git remote add origin [email protected]:user/repo.git
Sign up to request clarification or add additional context in comments.

Comments

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.