Hello Jeff,
From the error message, it seems the error is related to pre-receive hook
. As you know, the first script to run when handling a push from a client is “pre-receive”. It takes a list of references that are being pushed from stdin; if it exits non-zero, none of them are accepted. You can use this hook to do things like make sure none of the updated references are non-fast-forwards, or to do access control for all the refs and files they’re modifying with the push.
So, I suggest you discuss with whoever maintains the repo(maybe the administrator). And then update the hook or improve your codes(changes) to let pre-receive hook
pass your project.
If you’re the maintainer, please kindly check the settings in pre-receive hook
. Besides, please go to Github > your repo > Settings > Branches > Protect matching branches and check if the “Require pull request reviews before merging” option is selected. This option may affect the push
action, I suggest you check if some permissions which are related to push
has limitations.
If this issue still persists, maybe it’s more related to the settings of server-side, since our forum discusses about the usage of tools and editors in Visual Studio, I recommend you go to Stack Overflow tagged with git or Stack Overflow tagged with github and start a new thread there to seek for a more professional help.
Sincerely,
Tianyu