[转] Git caret(^) and tilde(~)】的更多相关文章

点击阅读原文 I spent a little bit of time playing with Git today, specifically the way that the ^ (caret) and ~ (tilde) work and thought I'd document it here in case I forget. The short version If you want a deeper explanation skip down to "The long versio…
From: http://www.vogella.com/tutorials/Git/article.html Git - Tutorial Lars Vogel Version 5.6 Copyright © 2009, 2010, 2011, 2012, 2013, 2014 Lars Vogel 08.02.2014 Revision History Revision 0.1 - 5.6 13.09.2009 - 08.02.2014 LarsVogel bug fixes and imp…
转自:http://www.vogella.com/tutorials/Git/article.html#git_rename_branch Lars Vogel Version 5.8 Copyright © 2009-2015 vogella GmbH 10.08.2015 Git Tutorial This tutorial explains the usage of the distributed version control system Git via the command li…
https://stackoverflow.com/questions/2221658/whats-the-difference-between-head-and-head-in-git Rules of thumb Use ~ most of the time — to go back a number of generations, usually what you want Use ^ on merge commits — because they have two or more (im…
本文编辑整理自: http://sg552.iteye.com/blog/1300713 http://web.mit.edu/bitbucket/git-doc/git-cherry-pick.txt git cherry-pick用于把另一个本地分支的commit修改应用到当前分支. 实际问题    在本地 master 分支上做了一个commit ( 38361a68138140827b31b72f8bbfd88b3705d77a ) , 如何把它放到 本地 old_cc 分支上?  办法…
转自:http://hubingforever.blog.163.com/blog/static/1710405792012587115533/ 本文编辑整理自: http://sg552.iteye.com/blog/1300713 http://web.mit.edu/bitbucket/git-doc/git-cherry-pick.txt git cherry-pick用于把另一个本地分支的commit修改应用到当前分支. 实际问题    在本地 master 分支上做了一个commit…
在终端,输入 git diff 文件名  命令之后回车,显示如下界面: 在网上查找,说输入q回车即可退出显示,执行,果然有效,输入h可以显示所有命令 命令如下: SUMMARY OF LESS COMMANDS Commands marked with * may be preceded by a number, N.      Notes in parentheses indicate the behavior if N is given.      A key preceded by a c…
0.前言 波浪号~,英文名叫 tilde.脱字符^,英文名叫caret. 这两种符号常见于git reset的情景,简单的项目结构和操作一般不会涉及到两者之间的区别,似乎用哪个都可以.如果遇到比较繁杂的提交历史,可能就要好好体验一下二者更深层的含义. 1.两种符号的异同和转换 1.1 ~表示当前分支所属提交时间线上的某个提交 只适用于当前分支所在的线性的历史提交. 如果提交历史为 A---B---C---D 当前所在点为HEAD=D,那么 C=HEAD~1 B=HEAD~2 A=HEAD~3 1…
homepage faq contribute bugs questions Git for Windows v2.11.0 Release Notes Latest update: December 1st 2016 Introduction These release notes describe issues specific to the Git for Windows release. The release notes covering the history of the core…
0. 理解 git diff 返回信息 1. 命令 $ git diff README.md 2. 返回信息,注解 diff --git a/README.md b/README.md ## 1. 表示为你使用的git格式的diff: index d29ab50..7e42b29 100644 ## 2. 表示两个版本的git哈希值,(index区域的d29ab50对象, ## 与工作目录区域的7e42b29对象进行比较) ## 最后的六位数字是对象的模式(普通文件,644权限) --- a/R…