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.
-
changing the bitbucket password did the trickM_T– M_T2015-10-07 11:10:43 +00:00Commented Oct 7, 2015 at 11:10
-
git has no access control mechanism at all, this all depends on what hosting system you are using.1615903– 16159032015-10-07 11:26:52 +00:00Commented 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...ckruczek– ckruczek2015-10-08 04:44:21 +00:00Commented 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 Overflowuser202729– user2027292022-06-01 03:01:02 +00:00Commented 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.netfed– netfed2023-08-07 23:01:11 +00:00Commented Aug 7, 2023 at 23:01
Add a comment
|
3 Answers
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
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
Kamlesh
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.