I have a GitHub repo that I want to push to from my Raspberry Pi using HTTPS. The problem is that every time I want to push, git asks me for the username and password. On my regular PC (MacBook Pro) this never happens. Is there some setting to save the password and not just a workaround that has to be repeated with every repository?
Asked
Active
Viewed 4,399 times
0
-
1Possible duplicate of [Git keeps prompting me for a password](https://stackoverflow.com/questions/7773181/git-keeps-prompting-me-for-a-password) – Nils Werner Oct 26 '19 at 09:03
-
@NilsWerner I am using HTTPS not SSH. I looked it up and the url begins with https:// so everything is right here. – user11914177 Oct 26 '19 at 09:26
-
@user11914177 Look at the dup beyond the accepted answer. There are many hints for https URLs. – phd Oct 26 '19 at 10:37
-
@phd What do you mean? – user11914177 Oct 26 '19 at 10:52
-
@user11914177 Credential helper. [Login:password in the URL](https://stackoverflow.com/a/32570160/7976758). – phd Oct 26 '19 at 11:01
-
@phd This is only a workaround. On my PC I never had to do that. – user11914177 Oct 26 '19 at 11:31
-
@user11914177 Because either you use ssh keys, or already set credential helper long ago and forgot about it. There is no magic in git. – phd Oct 26 '19 at 12:01
-
@phd I never logged into git using that and somehow it still is working on my pc! – user11914177 Oct 26 '19 at 12:12
-
@user11914177 I don't believe. I think you simply don't know and don't understand your own configuration. – phd Oct 26 '19 at 12:24
1 Answers
0
As seen in this question the credential helper can be used to save the password. It seems it is default on macOS.

user11914177
- 885
- 11
- 33