![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
Notzuonotdied
一个人优秀的可怕的三个迹象:高度的自律,近乎疯狂的努力;对自己好,学会不计代价的投资自己;相信自己,不在乎他人的眼光。
展开
-
Git 多SSH密钥简易配置教程
前言当我们想要在一台电脑中,给不同的域名配置不同的ssh密钥,也就是说一台电脑中存在多个密钥,可以通过ssh config来配置。这里仅仅介绍Unix系列的文档,Windows不在此列。准备知识默认配置在电脑中,会有一份默认的配置,我们可以先从默认配置来学习。先查看下文件的内容:cat /etc/ssh/ssh_config,文件内容如下:➜ .ssh cat /etc/ssh/ssh_config# $OpenBSD: ssh_config,v 1.34 2019/02/04 02:原创 2020-10-08 16:15:01 · 616 阅读 · 0 评论 -
Git Commit Hook
前言刚好写Shell工程,需要规范代码提交,就简单记录下。╮(╯▽╰)╭流程安装插件# 安装npm环境brew install npm# 安装插件npm install -g @commitlint/cli @commitlint/config-conventional如果对于commitlint有更多想要了解的,详见:helps your team adhering to ...原创 2020-03-17 22:44:04 · 1213 阅读 · 0 评论 -
Android Git简易教程
查看篇查看git仓库的提交记录:git log参数说明: git log --oneline 单行显示git log信息git log --decorate 修饰性的显示,主要是可以查看分支信息注意:git log中commit fbac9424348189e46175316396d7659f726157ed的commit后的前六位是当前log的标志,用于定位,如果需要回滚,可以使用...原创 2018-01-28 13:28:53 · 454 阅读 · 0 评论 -
Android Studio 工程.GitIgnore应该忽略的文件
Android Studio 工程.GitIgnore应该忽略的文件转载 2017-03-11 20:58:01 · 1949 阅读 · 0 评论 -
git [packet_write_wait connection to xx.xx.xx.xx Broken pipe]解决办法
git [packet_write_wait connection to xx.xx.xx.xx Broken pipe]解决办法原创 2017-04-28 14:38:25 · 4789 阅读 · 0 评论 -
.gitignore规则不生效的解决办法
把某些目录或文件加入忽略规则,按照上述方法定义后发现并未生效,原因是.gitignore只能忽略那些原来没有被追踪的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。那么解决方法就是先把本地缓存删除(改变成未被追踪状态),然后再提交:git rm -r --cached .git add .git commit -m 'update .gitignore'原创 2017-04-09 21:31:28 · 642 阅读 · 0 评论 -
git 冲突合并
当我们多人合作的时候,我们从远程仓库拉取更新出现冲突的时候,出现以下错误,这时候我们就需要手动修改冲突文件了。$ git pull origin masterFrom github.com:xxx/xxx * branch master -> FETCH_HEAD ……Automatic merge failed; fix conflicts and th原创 2017-04-08 15:03:12 · 540 阅读 · 0 评论 -
Bad owner or permissions on .ssh/config的解决
Bad owner or permissions on .ssh/config的解决原创 2017-04-08 14:23:21 · 14764 阅读 · 3 评论 -
git出现 fatal: remote origin already exists.
git出现 fatal: remote origin already exists.原创 2016-12-29 23:35:03 · 763 阅读 · 0 评论 -
commit your changes or stash them before you can merge.
commit your changes or stash them before you can merge.原创 2017-04-08 14:20:07 · 1156 阅读 · 0 评论 -
fatal: unable to access 'https://github.com/gmarik/Vundle.vim.git/': Could not resolve host: github.
fatal: unable to access ‘https://github.com/gmarik/Vundle.vim.git/‘: Could not resolve host: github.comvim原创 2017-04-08 14:18:32 · 8710 阅读 · 2 评论