1.共享仓库: 创建共享仓库 1.创建文件夹 mkdir file 2.设置文件夹属主 chown tarena:tarena file 3.将该文件夹设置为可共享的git仓库 cd file git init --bare file1.git 4.设置本地仓库属主 chown -R tarena: ...
分类:
其他好文 时间:
2018-09-29 21:30:53
阅读次数:
193
目前分为两种,寄居架构(Hosted Architecture)和裸金属架构 (“Bare Metal” Architecture),如图所示。 寄居架构就是在操作系统之上安装和运行虚拟化程序,依赖于主机操作系统对设备的支持和物理资源的管理; 裸金属架构就是直接在硬件上面安装虚拟化软件,再在其上安装 ...
分类:
其他好文 时间:
2018-09-16 01:00:23
阅读次数:
245
初始化一个空的裸仓库 $ cd /home/repo $ mkdir tproject.git $ cd tproject.git $ git init - -bare 注:这是在服务器上运行的,是为了初始化一个根级的git仓库 空仓库是不能clone的,所以需要某一个有写权限的人初始 化一个版本 ...
分类:
其他好文 时间:
2018-09-03 17:14:08
阅读次数:
269
解决: 将远程仓库中除.git以外的所有文件删除,然后执行 git config --bool core.bare true 然后客户端重新push即可解决问题 还要注意远程仓库权限方面... ...
分类:
其他好文 时间:
2018-08-19 11:01:21
阅读次数:
147
Fowler poor the pioneer a couple of weeks from guidance cheesy whereas dealing with some bare trauma. The guy was basically far from typically the by ...
分类:
其他好文 时间:
2018-08-16 11:27:41
阅读次数:
149
一、git服务器创建仓库 在普通用户有读写权限的目录下,创建git仓库,切勿使用root创建(root创建的仓库,普通用户无写的权限,导致提交失败)。 mkdir xxx.git git init --bare创建git仓库 或者克隆现有的仓库 git clone <git仓库地址> 二、本地项目上 ...
分类:
其他好文 时间:
2018-07-19 17:33:09
阅读次数:
139
ubantu 没有安装 openssh-server服务 需要apt-get install *配置etc/ssh/ssh_config(打开服务) 搭建git服务器: 服务器用户名 ,公匙,生成证书 ssh-keygen 初始化 --bare name.git 服务端仓库 在.ssh/中创建aut ...
分类:
系统相关 时间:
2018-06-14 11:36:15
阅读次数:
210
git 基本命令git init 初始化仓库git init --bare 初始化一个裸仓库git branch 查看本地分支git branch -a 查看全部分支git remote 远程仓库管理 add show rename rmgit add file 跟踪文件git checkout -... ...
分类:
其他好文 时间:
2018-05-31 00:29:34
阅读次数:
143
以下是本人安装k8s过程 参考文章如下: 1、 安装部署 Kubernetes 集群 参考资料: Using kubeadm to Create a Cluster(推荐) Kubernetes on bare-metal in 10 minutes 使用 Kubeadm 安装 Kubernetes ...
分类:
其他好文 时间:
2018-05-23 02:17:32
阅读次数:
186
编辑 .gitignore bin-debug/ 忽略所有的叫bin-debug文件夹和他下面的文件 编辑 .git/config [core] repositoryformatversion = 0 filemode = false // 提交时,忽略文件rwx权限的变化。 bare = fals ...
分类:
其他好文 时间:
2018-05-18 18:02:49
阅读次数:
130