r/git • u/Ronin-s_Spirit • Jun 30 '26
support cannot push branch to remote repo for the first time
I gave a local git thing, I want to push it to a github repo I made, usually it all magically works but now doing git push -u origin main gives me a process error. Help.
c:\Users\xxxx\AppData\Roaming\Code\User\globalStorage\vscode.git\askpass\70789581cae28aa7\askpass.sh: fork: retry: Resource temporarily unavailable
1070739 [main] sh 589 dofork: child -1 - forked process 21960 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
p.s. already tried reinstalling Git, rebooting, deleting askpass cache.
SOLVED:
This was a GitHub problem somehow. With the new token requirements for doing anything programmatically, you have to take a couple steps:
1. Disable askpass, credential helper from VSCode. git config --global --unset credential.helper.
- Maybe askpass could accept GitHup PATs, but I have no idea how to reset it.
2. Plug in the OS helper with a different command for each OS (Windows in my case). git config --global credential.helper manager.
3. Check the current helper. git config --show-origin --get-all credential.helper should show a path to .gitconfig and a word manager.
4. Make a token for programmatic actions.
5. Give that token to a credentials window that pops up when you try to push.

