Since Git uses cURL for HTTP, I am able to have a file ~/.netrc
[1] like this:
machine github.com login 89z password [Personal access token]
However it seems that another option is available, using cookies [2]. It looks like the syntax would be like this:
[http] saveCookies = true cookiefile = C:/cookie.txt
My question is, can this be used to push to GitHub? If so, how would I create the cookie file?
- https://curl.se/libcurl/c/CURLOPT_NETRC.html
- https://git-scm.com/docs/git-config#Documentation/git-config.txt-httpcookieFile
没有评论:
发表评论