Spent some time struggling with Git server on Windows (!). Memorize it here to not forget.
Init Windows git server
On Windows. git server create a folder for project, let it be c:/GitRepos/myProject.git Enter that directory with cygwin and run command there:
1 |
git init --bare |
Access from client.
Note: Windows user git includes server name with plus sign: server1+git
1 2 3 4 |
git clone server1+git@server1:c:/GitRepos/myProject.git echo "Test commit" > test.txt git commit -m "Test commit" git push origin master |