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

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

相关文章

有时候CentOS工作在无互联网的环境下,需要在离线环境下安装一些组件,这次实现的是模拟在离线环境下安...
首先参照https://www.cnblogs.com/wdw984/p/13330074.html,来进行如何安装Centos和离线下载rpm包。 离...
有两个.NET CORE3.1网站部署在CentOS7上(内网IP是192.168.2.32),现在想实现访问http://192.168.2.32...
1、yum -y install vsftpd 安装vsftpd 2、配置vsftpd的配置文件(/etc/vsftpd/vsftpd.conf)主要修改以...
首先去mysql官网下载mysql的离线rpm安装包(https://downloads.mysql.com/archives/community/) Mysql...
第一步下载erlang环境并安装: wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_...