创建Git服务器端仓库
sudo git config --global user.name "ubuntu"
sudo git config --global user.email [email protected]
sudo git config --global core.excludesfile ~/.gitignore
cd /home
创建生产目录
sudo mkdir product
创建仓库目录
sudo mkdir repos
创建名为myapp的仓库
cd /home/repos
sudo mkdir myapp
cd myapp
git-init --bare
cd /home/product
sudo git clone ssh://[email protected]/home/myapp/.git #app in another machine#
sudo git remote rm origin
sudo git remote add origin /home/repos/myapp
然后修改下代码。。。
sudo git add .
sudo git commit -m "first commit"
sudo git push origin master
相关推荐
baolen 2020-08-15
Equation 2020-08-09
87447007 2020-07-19
ArkShen 2020-07-05
formula 2020-11-12
huhongfei 2020-11-05
乾坤一碼農 2020-10-27
liumengyanysu 2020-10-22
E哥的aws认证攻略 2020-10-15
tianyafengxin 2020-10-08
guying 2020-10-05
好脑筋不如烂笔头 2020-09-17
nebulali 2020-09-11
佛系程序员J 2020-09-15
fenggit 2020-09-15
JustHaveTry 2020-09-11
兄dei努力赚钱吧 2020-09-06