随笔分类 -  Git

Git 2.x 中git push时遇到 push.default 警告的解决方法
摘要:近在学习使用 git&GitHub,然后今天遇到了一个问题。在执行 git add 和 git commit 操作之后,再进行 git push 操作,出现了如下提示: $ git push warning: push.default is unset; its implicit value has 阅读全文

posted @ 2019-01-05 18:21 林肯公园 阅读(2356) 评论(0) 推荐(0) 编辑

git add -A /git add -u/git add .的用法
摘要:git的指令详解 在git中有好多的指令,但是今天这几个指令就很容易忘记而且还容易混淆 git add -u <==> git add –update 提交所有被删除和修改的文件到数据暂存区 git add . 提交所有修改的和新建的数据暂存区 git add -A <==>git add –all 阅读全文

posted @ 2019-01-04 16:17 林肯公园 阅读(661) 评论(0) 推荐(0) 编辑

git刚初始化项目的操作
摘要:# Command line instructions ## Git global setup ## Create a new repository ## Existing folder ## Existing Git repository 阅读全文

posted @ 2019-01-04 15:59 林肯公园 阅读(177) 评论(0) 推荐(0) 编辑

git在不同平台windows、linux、mac 上换行符的问题
摘要:0.01 不同平台上换行符的问题 1,不同平台对换行符的制定不同 windows <回车换行> (carriage return AND line feed) “\n\r” CRLF Unix系统 <换行> (carriage return) “\n” CR window unix mac 等平台, 阅读全文

posted @ 2019-01-04 15:46 林肯公园 阅读(1643) 评论(0) 推荐(0) 编辑

配置gitlab通过smtp发送邮件
摘要:https://www.centos.bz/2017/08/gitlab-send-email-with-smtp/ 1. 编辑/etc/gitlab/gitlab.rb文件(加到文件最后面就好了)。以QQ企业邮箱为例: 有的教程可能会说去改/opt/gitlab/etc/gitlab.rb,是错的 阅读全文

posted @ 2018-06-27 19:35 林肯公园 阅读(421) 评论(0) 推荐(0) 编辑

Gitlab备份与恢复、迁移与升级
摘要:0.Gitlab安装 1.安装和配置必要的依赖关系 在CentOS7,下面的命令将在系统防火墙打开HTTP和SSH访问。 https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/ 版本:Gitlab Community Edition 注意: gitla 阅读全文

posted @ 2018-04-20 22:39 林肯公园 阅读(3940) 评论(0) 推荐(1) 编辑

gitlab HA集群
摘要:https://docs.gitlab.com/ee/administration/high_availability/gitlab.html https://about.gitlab.com/high-availability/ https://www.oschina.net/translate/ 阅读全文

posted @ 2018-04-19 22:43 林肯公园 阅读(3436) 评论(0) 推荐(0) 编辑

Your local changes to the following files would be overwritten by merge: ... Please, commit your changes or stash them before you can merge
摘要:Git出现error: Your local changes to the following files would be overwritten by merge: ... Please, commit your changes or stash them before you can merg 阅读全文

posted @ 2018-03-19 12:10 林肯公园 阅读(2715) 评论(0) 推荐(0) 编辑

GitLab修改时区
摘要:https://yq.aliyun.com/articles/275765 一、背景 今天有同事在GitLab上查看时间的时候,发现GitLab上显示的时间和提交的时间不一致。 本地时间现在为:2017-11-28 11:43 查看本地代码提交的时间为:2017-11-28 11:23 本地时间现在 阅读全文

posted @ 2018-02-06 17:42 林肯公园 阅读(10112) 评论(0) 推荐(0) 编辑

git revert回退时提示One or more files are in a conflicted state
摘要:解决代码冲突 如果commit时出现“You have to update your work copy first.”红色警告,说明版本库中的此文件已经被其他人修改了。 请先点“ok”按钮退出。执行update,然后再commit。 如果修改与update得到的代码不冲突,则自动合并。 如果冲突( 阅读全文

posted @ 2018-02-03 22:01 林肯公园 阅读(957) 评论(0) 推荐(0) 编辑

gitlab-ce-omnibus社区版的备份、还原及升级
摘要:旧gitlab服务器 更改gitlab备份文件存放位置 更改gitlab备份文件存放位置 备份旧gitlab服务器的数据,密钥文件及ssh文件,停止旧gitlab服务 备份旧gitlab服务器的数据,密钥文件及ssh文件,停止旧gitlab服务 新gitlab服务器 停止与数据库的连接 停止与数据库 阅读全文

posted @ 2018-02-02 15:30 林肯公园 阅读(704) 评论(0) 推荐(0) 编辑

GitLab 502问题的解决
摘要:问题: 502 Whoops, GitLab is taking too much time to respond. 日志: [root@cs12-66-gitlab ~]# my gitlab-ctl tail -bash: my: command not found [root@cs12-66- 阅读全文

posted @ 2018-02-02 15:15 林肯公园 阅读(20337) 评论(1) 推荐(1) 编辑

gitlab使用外部的postgresql、外部的redis服务器
摘要:postgresql创建用户 postgresql新建数据库 postgresql扩展pg_trgm 编辑 /etc/gitlab/gitlab.rb sudo gitlab-ctl reconfigure #检查是否使用自定义配置cat /opt/gitlab/embedded/service/g 阅读全文

posted @ 2018-01-26 14:09 林肯公园 阅读(1996) 评论(0) 推荐(0) 编辑

一步搞定私有Git服务器部署(Gogs)
摘要:http://www.jianshu.com/p/424627516ef6 零、安装 Docker 和 Compsoe 首先安装 Docker: curlsSLhttps://get.docker.com/|sh sudo usermod -aG docker YOURUSERNA 阅读全文

posted @ 2017-11-10 12:08 林肯公园 阅读(3341) 评论(0) 推荐(0) 编辑

gitlab安装、配置与阿里云产品集成
摘要:https://www.ilanni.com/?p=12819 一、gitlab安装与部署 gitlab的安装可以分为源码安装和通过安装包进行安装,要是按照我以前的写作习惯的话,我也会把源码安装在本文章中提现,但是考虑到gitlab本身需要集成的软件比较多,所以在此我们选择的是通过安装包进行安装的。 阅读全文

posted @ 2017-11-09 11:49 林肯公园 阅读(2237) 评论(0) 推荐(0) 编辑

gitlab安装
摘要:https://www.gitlab.cc/installation/#centos-7 彻底停止 gitlab服务 gitlab-ctl stopsudo systemctl stop gitlab-runsvdir.service # 查看gitlab各个组件的版本信息 阅读全文

posted @ 2017-11-08 23:06 林肯公园 阅读(146) 评论(0) 推荐(0) 编辑

Git自动换行符
摘要:http://blog.csdn.net/jonathan321/article/details/51988242?locationNum=2 不同的操作系统有不同的换行符格式,跨平台协作时需要考虑版本工具(git)对换行符的处理<!--more--> 回车和换行 回车(Carriage Retur 阅读全文

posted @ 2017-10-12 18:38 林肯公园 阅读(2331) 评论(0) 推荐(0) 编辑

git操作
摘要:http://www.yiibai.com/git/ 阅读全文

posted @ 2017-09-28 14:06 林肯公园 阅读(110) 评论(0) 推荐(0) 编辑

git push命令
摘要:git push命令用于将本地分支的更新,推送到远程主机。它的格式与git pull命令相似。 Shell Shell 使用语法 Shell Shell 描述 使用本地引用更新远程引用,同时发送完成给定引用所需的对象。可以在每次推入存储库时,通过在那里设置挂钩触发一些事件。 当命令行不指定使用<re 阅读全文

posted @ 2017-09-28 14:05 林肯公园 阅读(364) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示