M_T
M_T

Reputation: 65

How to change the git password using command prompt?

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.

Upvotes: 3

Views: 13939

Answers (3)

Abdul Manaf
Abdul Manaf

Reputation: 4993

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

Upvotes: -1

Anantha Raju C
Anantha Raju C

Reputation: 1897

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.

Upvotes: 0

Abdul Manaf
Abdul Manaf

Reputation: 4993

  • 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

Upvotes: 2

Related Questions