git detached HEAD explained
来源:互联网 发布:Mac打不了大写英文字母 编辑:程序博客网 时间:2024/05/17 04:06
Git has something called a 'detached HEAD' that bears some explanation. Youare told 'do not commit on a detached HEAD', and it is not always clear whator why this is.
开始主要讲git的原理,讲HEAD指针。反正,最重要的东西在最后:
git reflog show HEAD@{now} -10dcd215b... HEAD@{5 minutes ago}: commit (amend): 0-terminology: the malloc analogy added, plus5ce8bfe... HEAD@{11 minutes ago}: commit: 0-terminology: the malloc analogy added, plus3d93420... HEAD@{11 minutes ago}: rebase -i (pick): updating HEAD7fdae94... HEAD@{11 minutes ago}: checkout: moving from master to 7fdae94815d6c676742c9984132b7b9e71a57f983d93420... HEAD@{13 minutes ago}: rebase -i (squash): updating HEADc55900c... HEAD@{13 minutes ago}: rebase -i (pick): updating HEAD7fdae94... HEAD@{13 minutes ago}: checkout: moving from master to 7fdae94815d6c676742c9984132b7b9e71a57f98e9955c8... HEAD@{14 minutes ago}: commit: s97ab644... HEAD@{20 minutes ago}: commit: autogenc55900c... HEAD@{23 minutes ago}: commit (amend): 0-terminology: the malloc analogy added, plus
Now you look at this, decide which one you want, and grab it:
git branch thank_God_its_safe 7fdae94# like 'thank_God_its_safe = 0x7fdae94815d6c676742c9984132b7b9e71a57f98'git checkout thank_God_its_safe
from:http://blog.csdn.net/raining_heart/article/details/8569904
阅读全文
0 0
- git detached HEAD explained
- Git之detached HEAD
- git detached from head
- Git——detached HEAD
- how to solve git detached HEAD
- Git HEAD detached from XXX (git HEAD 游离) 解决办法
- detached HEAD
- detached HEAD
- git checkout之一 HEAD基本和detached 状态
- git checkout之一 HEAD基本和detached 状态
- iOS git checkout之一 HEAD基本和detached 状态
- detached HEAD意义详解
- detached HEAD意义详解
- 【git系列之B】git切换到某个tag之后提示“detached HEAD"应该如何操作
- WebStorm/IntellJ编译器使用GIT先fetch后merge报错detached head解决办法
- git问题记录--如何从从detached HEAD状态解救出来
- git问题记录--如何从从detached HEAD状态解救出来
- HEAD detached at head的处理
- Android中从网上下载一张图片显示进度并显示下载好的图片
- 杂记
- 10月17日云栖精选夜读:什么是新零售?阿里巴巴最新的报告终于说清楚了!(附报告)
- HPE提供集合套件作为经营决策
- MySQL练习-employees数据库(一)
- git detached HEAD explained
- WFP过滤开发(一)
- postgresql cheatsheet
- Linux的运行级别和chkconfig用法
- Oracle11g Active Data Guard搭建、管理
- 微信支付提示支付验证签名失败
- 前端websql的入门
- 使用Nginx抵御DDOS攻击
- test