Is it possible to set username and password in the config file?

4 views
Skip to first unread message

Marcos Cruz

unread,
Mar 26, 2023, 3:03:58 AM3/26/23
to hg-git

I'm trying hg-git for the first time and I have a doubt: Every time I do
`hg push` I have to type in my username and password (GitHub access
token), even after including them in the server URL:


```
[paths]

default = git+https://github.com/MY_USER/MY_REPO.git

# this works too, but user and password (token) are ignored:
#default = git+https://MY_USER:MY_GITHUB_A...@github.com/MY_USER/MY_REPO.git
```

Is there any way to set the user and password in the config file? I have
found nothing about this in the docs (`hg help hggit` and <README.rst>).

Thank you in advance.

--
Marcos Cruz
http://programandala.net
Reply all
Reply to author
Forward
0 new messages