Git 发布网站程序

mkdir website.git

cd website.git

git init --bare

mkdir mywebsite

cd mywebsite

git init

git remote add web ssh://server1-ip/home/developer/website.git

git remote add web ssh://server2-ip/home/developer/website.git

git add .

git commit

git push web +master:refs/heads/master

你可能感兴趣的:(Git 发布网站程序)