-
Notifications
You must be signed in to change notification settings - Fork 0
git
cmh edited this page Apr 10, 2015
·
4 revisions
####安装
apt-get install git-core
####初始化用户
`git config --global user.name "cmh"
git config --global user.email "XXX@gmail.com"
`
####搭建项目
` mkdir -p git/project.git
`cd git/project.git
--bare选项运行 git init来建立一个裸仓库,这会初始化一个不包含工作目录的仓库
git --bare init
clone
git clone ssh://xxx@xxx.xxx.xxx.xxx:22/home/cmh/source/marsfuturers/.git/
连接
ssh://xxx@xxx.xxx.xxx.xxx:22/home/cmh/git/robot.git
push
git push ssh://xxx@xxx.xxx.xxx.xxx:22/home/cmh/source/oop/.git/ master //