Building Git Repositories at Cloud
Take Aliyun ECS as an example
-
Ensure
git
is installedapt-get install git
-
Add a user which logins in with
git-shell
to 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.git
for 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.