大佬教程收集整理的这篇文章主要介绍了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
@H_297_0@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
下载后就可以进行图形界面的操作了
以上是大佬教程为你收集整理的centOs创建git服务器和windows创建本地git的使用步骤全部内容,希望文章能够帮你解决centOs创建git服务器和windows创建本地git的使用步骤所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。