centOs创建git服务器和windows创建本地git的使用步骤
2017-05-17 22:54
501 查看
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
下载后就可以进行图形界面的操作了
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
下载后就可以进行图形界面的操作了
相关文章推荐
- 在Jenkins中使用Git托管项目的源码创建Build Job(托管在本地Git服务器上面)
- thinkphp3.2.3版本在windows本地apache环境运行正常,上传到centos服务器apache环境中出现:thinkphp 上传根目录不存在!请尝试手动创建:uploads/
- 极简的centos-git服务器搭建,供windows用户使用
- windows下使用git命令行将本地项目提交到git服务器
- Windows上使用Cygwin和Gitolite搭建Git服务器
- windows开发平台下本地项目如何使用git管理
- 初识GihHub,创建仓库,使用GitHub for Windows 同步本地代码文件,创建分支
- linux上配置subversion服务器端安装配置并使用svn,windows本地检出,设置同步更新服务器的钩子
- 如何在WINDOWS(XP)下使用copSSH配置GIT服务器+TortiseGIT客户端
- 將本地windows 变成 git server服务器
- Bonobo Git Server搭建本地Git服务器(Windows 下)
- 使用navicat在本地windows环境创建测试数据库
- git 本地库的创建以及如何完成服务器仓库的分支的映射和同步
- CentOS 6.2 上安装使用私钥认证的Git服务器
- 使用git和expect在本地开发环境与服务器生产环境之间同步程序文件
- 使用c#创建windows本地用户帐号
- Windows下Git服务器搭建及使用过程中的一些问题
- Git安装及使用以及如何配置本地的Git服务器
- Windows使用Apache2配置Git服务器
- git从版本库创建、从远程克隆或本地新建,配置KEY,合并分支到提交到远程版本库等步骤