git
秦汉唐天下
这个作者很懒,什么都没留下…
展开
-
git pull出错解决
当本地代码存在修改而没有提交时,如果进行pull操作,非常容易出现错误提示error: Your local changes to the following files would be overwritten by merge: xxx/xxx/xxx.java Please, commit your changes or stash them before you ca...原创 2016-12-08 15:20:32 · 761 阅读 · 0 评论 -
git 本地添加版本库流程
git 公钥windows 上tortoise git的密钥和git命令行的密钥文件不通用,如果两者都用的话,最好都生成一次ssh-keygen -t rsa -C "$your_email"之后一路回车即可cat ~/.ssh/id_rsa.pub用来显示你的密钥在C:\Users\你的用户名\.ssh下找到公钥文件,就是以.pub结尾的文件,将其内容加到相应的服务端sshkey中即...原创 2016-12-08 15:21:36 · 279 阅读 · 0 评论 -
tortoiseGit使用说明
首先要安装msysgit,并按git命令行模式初始化之后,才能安装使用tortoiseGit此处的commit只是提交到本地库,如果要提交到远程库,需要使用push选项但push到远端不能使用msysgit产生的.pub文件,需要用tortoiseGit自带的putty gen产生的key打开之后点击Generate按钮产生key产生key的时候需要鼠标在上部滚动条...原创 2016-12-08 15:23:16 · 474 阅读 · 0 评论 -
centos6 gitlab备份升级转移
本人原服务器A上使用的是gitlab-ce-8.16.0-ce.0.el6.x86_64,工作需要需将其转移到B服务器上,并升级到最新版本,服务器使用centos6.9系统一、备份1.无论做什么大型操作,最先要做的必须是备份好原服务器数据shell> gitlab-rake gitlab:backup:create STRATEGY=copy备份文件在/var/opt...原创 2018-05-15 10:01:32 · 491 阅读 · 0 评论 -
php 操作git报Host key verification failed
1.windows本人在用windows上,用php7.2进行git操作时,总是在报错Cloning into 'G:\tmp\repository\git_repository\chef-server.git'...Host key verification failed.fatal: Could not read from remote repository.Please make s...原创 2018-06-01 21:11:38 · 797 阅读 · 0 评论 -
linux gitlab相关操作
1.unicorn默认配置路径/var/opt/gitlab/gitlab-rails/etc/unicorn.rb2.gitlab启动命令gitlab-ctl startgitlab-ctl stopgitlab-ctl restartgitlab-ctl statusgitlab-ctl stop unicorngitlab-ctl stop sideki...原创 2018-09-06 17:20:49 · 204 阅读 · 0 评论 -
git常用命令
本文参考:https://www.yiibai.com/git一、添加多个remotegitremoteaddoriginA(remoteA名称)git@10.130.161.12:server-group/a-project/server.gitgitremoteaddoriginB(remoteB名称)git@10.130.161.12:server-group/b-p...原创 2018-11-05 15:11:33 · 188 阅读 · 0 评论