Building Git Repositories at Cloud
Take Aliyun ECS as an example
-
Ensure
gitis installedapt-get install git -
Add a user which logins in with
git-shellto maintain repositoriesadduser git # whether called git is not important sed -i "\$s,/bin/bash,`which git-shell`,g" /etc/passwd mkdir /home/git/.ssh wget https://github.com/cf020031308.keys -O /home/git/.ssh/authorized_keys -
Create a git repository
test.gitfor instancecd /home/git && git init --bare test.git && chown -R git:git test.git -
Clone from anywhere
git clone git@host:/home/git/test.git
Page Not Found
Try to search through the entire repo.