git clone --bare counter/ bare_repo/counter.git
scp -r bare_repo/counter.git root@dv:/opt/git
添加服务器为发布端
git remote add publish root@dv:/opt/git/counter.git
ssh root@dv
cd ~/source
git clone /opt/git/counter.git sdk_counter
修改代码后发布到服务器
git push publish
修改代码后更新
cd ~/source/sdk_counter
git pull