| machine github.com | |
| login technoweenie | |
| password SECRET | |
| machine api.github.com | |
| login technoweenie | |
| password SECRET |
This comment has been minimized.
This comment has been minimized.
noamtm
commented
Jan 7, 2013
|
What about per-repository login? |
This comment has been minimized.
This comment has been minimized.
g2p
commented
Mar 20, 2013
|
@noamtm I just checked, netrc or gitcredentials aren't up to the task (the latter has an option to match on host paths, but prefix matches are missing so it's only semi-convenient). If you control the url you should put the username in the url or use host aliases, both ssh ( |
This comment has been minimized.
This comment has been minimized.
madarche
commented
Dec 23, 2013
|
Note about a limitation: password in |
This comment has been minimized.
This comment has been minimized.
soupdiver
commented
Jul 9, 2014
|
Thanks man! Exactly what I needed |
This comment has been minimized.
This comment has been minimized.
kprikshit
commented
May 1, 2015
|
Any way to store password here not in plain text. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
snowyu
commented
Jul 24, 2015
|
github supports the access token instead of password: https://help.github.com/articles/creating-an-access-token-for-command-line-use/ |
This comment has been minimized.
This comment has been minimized.
andrewspiers
commented
Feb 7, 2017
|
@rhiannon that's all good until you are somewhere that blocks 22 outbound. |
This comment has been minimized.
This comment has been minimized.
felipe1982
commented
Mar 14, 2017
|
@andrewspiers I thought that you can alternatively use port 443 outbound for SSH traffic... Or am I confused with bitbucket...? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
miradnan
commented
Mar 23, 2018
•
|
Thanks! Exactly what I needed |
This comment has been minimized.
This comment has been minimized.
LiviuLvu
commented
May 19, 2018
|
Is it possible to add a default editor within this file? |
This comment has been minimized.
This comment has been minimized.
kopax
commented
Oct 2, 2018
|
Hi, what about |
This comment has been minimized.
This comment has been minimized.
solderjs
commented
Jul 24, 2019
•
Excerpt fromThe Vanilla DevOps Git Credentials & Private Packages CheatsheetGIT_ASKPASS
.gitconfigThe
Which you can create by doing this: git config --global url."https://api:xxx@github.com/".insteadOf "ssh://git@github.com/"
git config --global url."https://api:xxx@github.com/".insteadOf "git@github.com:"
git config --global url."https://api:xxx@github.com/".insteadOf "https://github.com/"
git config --global url."https://api:xxx@github.com/".insteadOf "https://api:github.com/"git-credentialsThis is nice because it's very granular and you can combine it with the trick above. git config credential.helper store
.netrc
|
This comment has been minimized.
This comment has been minimized.
Varriount
commented
Oct 22, 2019
•
|
For those in the future wondering why this might not work - as of Go 1.13.x, Go uses proxies when downloading packages and verifying checksums. In order to bypass the proxies, you'll need to set the environment variables For example, from the documentation:
This states:
|
This comment has been minimized.
technoweenie commentedJul 8, 2011
Stick this in ~/.netrc with chmod 600 or something. You can curl the api as yourself with
curl -n https://api.github.com/user