Git remote push server not working

After cloning the Git repository from my remote server, I made some changes to my local copy. I would like to return these changes to the remote server, but I get an error message that does not provide any useful information:

fatal: read error: Invalid argument 

(Ps. Both server and local repo work in Windows environments)

I tried:

 git push git push origin git push origin master 

Advancing the GUI version of Git gives the same useful error message.

EDIT After setting the environment variable GIT_TRACE = 1, I get a little more output:

 C:\repo>git push --verbose setup: git_dir: .git setup: worktree: C:/repo setup: cwd: C:/repo setup: prefix: (null) trace: built-in: git 'push' '--verbose' Pushing to git://MYSERVER.MYCOMPANY.net/repo fatal: read error: Invalid argument 

Any thoughts?

+2
source share
2 answers

It looks like you are working on a simple cmd.exe server instead of the msysgit bash terminal. Most git depends on shell scripts; thus, you need to run bash instead of cmd.exe in the terminal.

+2
source

Are you sure that the server is configured correctly, has your SSH key, etc.? Are you home to a git server brew or is it something like git -hub / assemblyla?

0
source

Source: https://habr.com/ru/post/1498088/


All Articles