3

Let's say my git username is 'gitme' and the password is 'gitpass'. how do I change the password to 'gitpass1'? Please let me know.

5
  • changing the bitbucket password did the trick Commented Oct 7, 2015 at 11:10
  • git has no access control mechanism at all, this all depends on what hosting system you are using. Commented Oct 7, 2015 at 11:26
  • Please add more information to your question like: What system are you using? *Nix, OSX or Windows. What collaboration service are you using? Github, gitolite, bitbucket etc... Commented Oct 8, 2015 at 4:44
  • For future readers, to change the password Git uses (instead of changing GitHub password): macos - How do I update the password for Git? - Stack Overflow Commented Jun 1, 2022 at 3:01
  • And for windows users, also check Control panel > User accounts > Manage windows credentials. You will find the stored password for each of the repositories listed there. Commented Aug 7, 2023 at 23:01

3 Answers 3

2
  • you can put the password in .netrc file (_netrc on windows). From there it would be picked up automatically. It would go to your home folder with 600 permissions.

  • a new option is to use the credential helper. Note that credentials would be stored in clear text in your local config using standard credential helper. credential-helper with wincred can be also used on windows.

Usage examples for credential helper

git config credential.helper store - stores the credentials indefinitely.
git config credential.helper 'cache --timeout=3600'- stores for 60 minutes
Sign up to request clarification or add additional context in comments.

2 Comments

Thanks! If i have a problems with the previous solution I will try this next
I don't think this is the correct solution for your question. On the other hand, storing a password in a file is always a bad idea.
0

To reset/change your password in GitHub visit this website.

  • Enter the email address associated with your personal GitHub account.
  • GitHub will email you a link that will allow you to reset your password. You must click on this link within 24 hours of receiving the email. If you don't receive an email from GitHub, make sure to check your spam folder.
  • After clicking on the link in your email, you'll be asked to enter a new password.

1 Comment

I have 2 passwords. One to login into github account on github website while another password is used to pull / push github repository. I have to change the second password not github account password. Kindly suggest how can we do? Thanks.
-1

to change password in Bitbucket

  1. Login to Bitbucket using current username & password
  2. Goto Manage Account(top right corner)
  3. Click Change Password, then enter old password and new password

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.