I set up access to git over apache2 and the git-http-backend as described in http://www.tikalk.com/alm/setup-git-gitweb-git-http-backend-smart-http-ubuntu-1204 . I can pull from the test repository which already exists remotely.
I have however hard time pushing a repository I created locally to the remote server such that a new repository is set up there. I am a beginner with git, so I might be missing something obvious.
I create a test repository like this:
mkdir test2 cd test2 git init . echo blah > foo.txt git add . git commit -m'initial commit' I try this:
git push http://myserver/git/test2.git fatal: repository 'http://myserver/git/test2.git/' not found or this:
git push --set-upstream http://myserver/git/test2.git master fatal: repository 'http://myserver/git/test2.git/' not found Any hint?
git init --bare. See herepush) to get the repo to the remote withoutssh'ing there? I am migrating away frombzrand this is something it trivially supports.bzr init-repo?bzr push https+webdav://myserver/bzr/new-repowhich pushes the branch to thenew-repowhich perhaps does not exist yet. Or to create a remote repo, I was able to dobzr init https+webdav://myserver/bzr/new-repo(running that command locally, creating the repo remotely).