gitweb - how to move git repositories from Windows to Ubuntu server? -
i have published several git repositories in apache http server located in windows system. , files saved in same computer. want move these git repositories computer, there apache http server gitweb. utilize git clone http://username@ipaddress/git/repository_name clone these repositories other local machines.
but when straight copied these git repositories 1 git root directory, git clone study 1 error info/refs.
is there efficient ways work? give thanks you.
updated:
in windows 7 computer, save these repositories in f:/gitroot directory. , in httpd.conf, related configuration follows:
setenv git_project_root f:/gitroot setenv git_http_export_all scriptalias /git/ "d:/program files/git/libexec/git-core/git-http-backend.exe/" <directory "d:/program files/git/libexec/git-core/"> allow </directory> <directory "f:/gitroot"> options allowoverride none order deny,allow deny allow 192.168.0.0/24 allow 127.0.0.1 allow </directory> <location /git > authtype basic authname "git repository" authuserfile f:/gitroot/htpasswd require valid-user </location> and clarity, create new directory named test in f:/gitroot, go test directory, git init --bare, initialize new git repository. in other computers, utilize git clone http://username@windows_ipaddress/git/test clone repository develop. utilize git push/pull origin master operations git update or modifiy git repository.
now, want move these repositories in f:/gitroot computer operating scheme ubuntu 12.04, , apache server installed , configured gitweb http access in windows system. re-create files in f:/gitroot /media/backup_data/gitroot ubuntu computer. construction of these git repositories not changed.
when utilize git clone http://username@ubuntu_ipaddress/git/test, error :
cloning 'test'... fatal: http://192.168.0.2/git/test/info/refs not found: did run git update-server-info on server? finally, have found answer: should alter privileges of copied directory.
sudo chown -r www-data:www-data test then, git clone executed successfully.
i've answered question in section update of original post.
git gitweb
No comments:
Post a Comment