centOs创建git服务器和windows创建本地git的使用步骤

1.centos安装git

yum install git

安装成功,运行

git --version

2.服务器创建git项目

 创建git工作目录

 在 /usr/common/下创建

[root@VM_54_176_centos usr]# mkdir common
[root@VM_54_176_centos usr]# ls
bin     etc    include  lib64    local  share  tmp
common  games  lib      libexec  sbin   src
[root@VM_54_176_centos usr]# cd common
[root@VM_54_176_centos common]# mkdir gitrepo
[root@VM_54_176_centos common]# cd gitrepo
[root@VM_54_176_centos gitrepo]# mkdir project1
[root@VM_54_176_centos gitrepo]# cd progect1
-bash: cd: progect1: No such file or directory
[root@VM_54_176_centos gitrepo]# cd project1
[root@VM_54_176_centos project1]# git init --bare

git init --bare 这条命令就是在git下创建git工作目录

3.window下的使用

3.1 安装msysGit

msysGit是git在系统中的注册信息,能执行Git的shell命令

下载地址:https://code.google.com/p/msysgit/

3.2 安装TortoiseGit

TortoiseGit是git的图形化界面,在本地操作git主要用这个,如果未安装msysGit或其他shell版本的git,这msysGit不可用

下载地址:  https://code.gogle.com/p/tortoisegit/wiki/download

下载后就可以进行图形界面的操作了



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值