Hard code a password in a git remote
Tired of typing in your password every time you push an update to your Windows Azure Website (or github for that matter)?
You can include the password in the remote url:
http://USERNAME:PASSWORD@WEBSITE.scm.azurewebsites.net/WEBSITE.git
To update your remote, you can use:
> git remote set-url azure [url]
To list your remotes, complete the URLs, use:
> git remote -v
Dan Higham 8:49 am on December 19, 2012 Permalink | Log in to Reply
This is a non-issue for linux and mac users because of SSH keys, is there no way to do this in Windows as well? Other than using Cygwin…
Richard 9:24 am on December 19, 2012 Permalink | Log in to Reply
You can only use HTTP for pushing to Azure Websites at the moment. In fact using SSH with cygwin still results in git asking you for a password every time (as far as I can figure out). On Linux it remembers. I think the PowerShell implementation is better (PoshGit) but I’d rather just use the command line.