Chinaunix首页 | 论坛 | 博客
  • 博客访问: 631586
  • 博文数量: 95
  • 博客积分: 2091
  • 博客等级: 大尉
  • 技术积分: 982
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-05 19:34
文章分类

全部博文(95)

文章存档

2017年(1)

2016年(20)

2015年(10)

2014年(6)

2013年(4)

2012年(1)

2011年(9)

2010年(6)

2009年(20)

2008年(17)

2007年(1)

我的朋友

分类: 系统运维

2016-03-29 13:41:47

配置远程GIT仓库

一 配置服务器
# yum install git
# useradd -s /bin/false git
# su - git 
# git init --bare sample.git

二 客户机
# yum install git
# mkdir -p /home/proj
# cd /home/proj
# git init
# echo "hello world" > readme.txt
# git add readme.txt
# commit -m "test"
# git remote add origin git@192.168.1.79:/home/sample.git
# git push origin master

相关文章:


阅读(975) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~