首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 企业软件 > 行业软件 >

创设Git服务器端仓库

2012-07-01 
创建Git服务器端仓库sudo git config --global user.name ubuntusudo git config --global user.email u

创建Git服务器端仓库

sudo git config --global user.name "ubuntu"

sudo git config --global user.email ubuntu@domain.com

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://root@11.22.33.44/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

?

热点排行