随笔分类 -  Git

Window系统下搭建GIT本地服务器
摘要:这里搭建Git本地服务器我用的工具是Git2.7.0和Gitblit1.8.0。 1.安装Java环境,配置环境变量。 2.解压文件gitblit-1.8.0.zip至你准备放服务器的目录下 3.修改gitblit安装目录下的data文件下的gitblit.properties。 将其中includ 阅读全文
posted @ 2018-05-28 18:27 阅读(1729) 评论(0) 推荐(0)
CentOS安装Git,并上传、下载
摘要:一、安装Git 二、生成SSH密钥 连续按3个回车(密码默认为空),得到 id_rsa 和 id_rsa.pub 文件,在/root/.ssh 下说明生成成功 三、添加密钥到Github 打开 Github,登录自己的账号后点击自己的头像->settings->SSH And GPG Keys->N 阅读全文
posted @ 2018-05-10 22:45 阅读(364) 评论(0) 推荐(0)
git同步遇到报错“fatal: unable to access 'https://github.com/lizhong24/mysite2.git/': Peer reports incompatible or unsupported protocol version.”
摘要:git同步遇到报错“fatal: unable to access 'https://github.com/lizhong24/mysite2.git/': Peer reports incompatible or unsupported protocol version.” 解决办法: 问题解决了 阅读全文
posted @ 2018-05-10 21:30 阅读(6475) 评论(0) 推荐(1)
git远程库与本地联系报错:fatal: Not a git repository (or any of the parent directories): .git
摘要:在github上新建了一个仓库,然后相与本地的仓库联系起来 $ git remote add origin https://github.com/lizhong24/mysite2.git fatal: Not a git repository (or any of the parent direc 阅读全文
posted @ 2018-05-10 21:25 阅读(417) 评论(0) 推荐(0)