git服务器简单搭建 linux
来源:互联网 发布:直销软件开发 编辑:程序博客网 时间:2024/04/30 14:37
搭建git服务器
安装略。
1、远程仓库设置
mkdir 2015
cd mkdir 2015
git init (--bare)
2.本地仓库
mkdir 2015
cd 2015
git init
git add remote online git@192.168.118.202/home/2015(关联远程仓库)
git clone git@192.168.118.202:/home/2015
touch 1.txt
git commit -m'1.txt'
git push
(ps:
如果无权限
chown -R git.git
如果还有权限问题
vim .git/config
添加
[receive]
denyCurrentBranch = ignore
(如用了bare应该不会出现类似问题))
3.检验 在远程仓库 服务端 ,客户端执行push之后,需要git reset hard
安装略。
1、远程仓库设置
mkdir 2015
cd mkdir 2015
git init (--bare)
2.本地仓库
mkdir 2015
cd 2015
git init
git add remote online git@192.168.118.202/home/2015(关联远程仓库)
git clone git@192.168.118.202:/home/2015
touch 1.txt
git commit -m'1.txt'
git push
(ps:
如果无权限
chown -R git.git
如果还有权限问题
vim .git/config
添加
[receive]
denyCurrentBranch = ignore
(如用了bare应该不会出现类似问题))
3.检验 在远程仓库 服务端 ,客户端执行push之后,需要git reset hard
另外,客户端需要先git pull下。
如果sshgitssh-keygen -t rsa -C "youremail@example.com"
0 0
- git服务器简单搭建 linux
- linux下搭建简单的git服务器
- linux下搭建简单的git服务器
- 简单Git服务器搭建
- linux搭建git服务器
- linux - git服务器搭建
- linux搭建git服务器
- linux git 服务器搭建
- Linux git 服务器搭建
- linux 搭建git服务器
- Linux搭建Git服务器
- Linux搭建git服务器
- linux下搭建简单的git服务器测试1
- git服务器的简单搭建
- git服务器的简单搭建
- git服务器的简单搭建
- git服务器的简单搭建
- git服务器的简单搭建
- ARM7的存储器映射及分散装载
- .NET开发常用工具大盘点
- YTUOJ矩形类定义(复制类对象)
- 大白话解析模拟退火算法
- C++中explicit关键字作用
- git服务器简单搭建 linux
- 深入Spark内核:任务调度(1)-基本流程
- 25个必须记住的SSH命令
- hdu2015(偶数求和)
- linux学习之--SecureCRT 工具上传下载数据
- STM32F407串口的基本使用
- Android Matrix详解
- 写在200小时
- 原理图检查以及一些错误及原因