![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
文章平均质量分 94
fanlei77
这个作者很懒,什么都没留下…
展开
-
Git Cheat-Sheet
[code="java"]git init # initialize local repository (create new repository)git config --global user.name "xxx" # config usernamegit config --global user.email "xxx@xxx.com" # c...原创 2016-05-16 11:40:25 · 99 阅读 · 0 评论 -
Git创建Commit Message模板
ge就会比较痛苦了。解决办法是创建一个模板,每次提交的时候,填写模板就可以了首先修改工程的.git\config文件,添加:[code="xml"][commit]template = ./.git/gitmessage[/code]然后添加一个gitmessage文件:[code="java"]JIRA: XXX-Description: [/code]原创 2018-01-17 15:52:18 · 1419 阅读 · 0 评论 -
Pro Git摘要
[size=x-large][b]1.基础配置[/b][/size][code="js"]git config --listgit help branch[/code][size=x-large][b]2.基本操作[/b][/size]跳过暂存直接提交[code="js"]git commit -a -m 'Detailed comment'[/code][size...原创 2018-04-25 21:06:10 · 84 阅读 · 0 评论 -
HEAD^ vs HEAD~
[code="java"]G H I J \ / \ / D E F \ | / \ \ | / | \|/ | B C \ / \ / AA = = A^0B = A^ = A^1 = A~1C =...原创 2018-01-18 09:58:27 · 151 阅读 · 0 评论 -
Git命令收集
1,回滚一个错误的commit[code="java"]git reset --soft HEAD~1[/code]2,从当前代码创建一个新的分支hellobranch[code="java"]git checkout -b hellobranch[/code]3,列出当前repository关联的所有远程repository[code="java"]git remote -v...原创 2017-11-09 11:58:30 · 346 阅读 · 0 评论 -
Git内部原理
重要的文件:HEAD index objects refsobjects目录存储所有数据内容 refs目录存储指向数据(分支)的提交对象的指针 HEAD文件指向目前被检出的分支 index文件保存stage信息Git的核心部分是一个简单的键值对数据库(key-value data store). 你可以向该数据库插入任意类型的内容,它会返回一个键值,通过该键值可以在任意时刻再次检索(retriev...原创 2018-05-07 22:16:41 · 112 阅读 · 0 评论