git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Feature request: update password in remote URL

From
JWJán Waclawek <jan.waclawek@taphome.com>
Date
Oct 22, 2026, 09:52 UTC
Message-ID
<CA+jzbCGmDYCS5XZmEnYpZ31a-cV5bncR04xv2BXz3eCyhBuCiQ@mail.gmail.com>

It would be useful to have a Git command that replaces only the password embedded in a remote URL, preserving the username, hostname, path, and other URL components.

For example:
git remote set-password origin NEW_PASSWORD

Security policies on various git servers stipulate to change password relatively often. Currently, if a password expires or changes, users must reconstruct the remote URL with the new password or use a script to modify it. A dedicated command would make this operation simpler and less error-prone.

The command should replace only the password component and preserve all other parts of the URL unchanged.

I am aware of existence of credential managers, but sometimes they are just too much. I also understand that storing passwords in remote URLs has security drawbacks, but this feature would help users who already use the embedded credentials, work with servers that require URL-based credentials and understand those drawbacks.

Jan Waclawek
Next: brian m. carlson
Message 1 of 2 in “Feature request: update password in remote URL”
  1. Ján WaclawekOct 22, 2026
  2. brian m. carlsonOct 22, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.