My web hosting provider allows me to access my web space through WebDAV, so I decided to create a git repository to see what was going on. Cloning the repository is read-only, since "git clone http://my.server.com/repo.git " just uses the standard HTTP transport.
Problems arise when I try to use WebDAV because my user ID is " user@my.server.com " and I have to use port 2077. That means I have to do something like
git config remote.origin.pushurl http:// user@my.server.com @my.server.com:2077/repo.git
and the two @ signs in the URL should cause problems because "git push origin master" reports "error 22".
I tried to create a .netrc entry
machine my.server.com login user@my.server.com password ****
but that didn't seem to help.
I also tried replacing the first "@" with "%", "\ @" and "% 40", but none of them worked.
source share