Skip to content
Edward Z. Yang edited this page Dec 2, 2023 · 6 revisions

E001: git push failed, probably because it asked for password

By default, GitHub offers you an https URL for initially cloning a repository. When you try to push to a repository cloned this way, git will ask you for your username and password to push. This is not a big deal if you are doing a one-off push by hand, but when running ghstack we do a lot of git pushes (up to three times the number of PRs in your stack), and continuously re-entering your password every time can be quite tiresome.

In recent versions of ghstack, we have disabled interactive password authentication for git push, so we will just fail if this situation occurs. To fix this, you will need to setup password-less push. There are a few ways to do this:

If for some reason, you want to manually reenable the old behavior, explicitly set GIT_TERMINAL_PROMPT=1 environment variable when running ghstack.

Clone this wiki locally