Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • It didn't work for me. It still stops the execution at Username for 'https://github.com': Commented Nov 12, 2020 at 11:48
  • Found this https://superuser.com/questions/1078435/piping-credentails-to-git-push. You can't pipe things to git push, but it works for other commands. Thanks! Commented Nov 12, 2020 at 12:01
  • I suspect that the linked answer is misdiagnosing the issue -- git is probably opening /dev/tty directly rather than using its stdin in order to read the user and password, just like ssh does. In fact, I cannot think of many programs where your answer would work at all -- maybe some old versions of su (NOT the one from Debian). Commented Nov 12, 2020 at 19:34