git branch detached from jb4.2.2_1.0.0-ga

简介: /*************************************************************************** * git branch detached from jb4.2.2_1.0.0-ga * 说明: * 将Android的U-Boot拿出来,结果遇分支不存在的问题。
/***************************************************************************
 *              git branch detached from jb4.2.2_1.0.0-ga
 * 说明:
 *     将Android的U-Boot拿出来,结果遇分支不存在的问题。
 *
 *                                      2017-2-8 深圳 南山平山村 曾剑锋
 **************************************************************************/

一、参考文档:
    1. git问题记录--如何从从detached HEAD状态解救出来
        http://www.jianshu.com/p/ae4857d2f868 
    2. git checkout之一 HEAD基本和detached 状态
        http://blog.csdn.net/csfreebird/article/details/7583363

二、解决方法:
    1. git branch -v  
    2. 创建分支:
        1. git branch <new-branch-name> <commit id>
            git branch temp fef4501
        2. git checkout temp
        3. 或者 git branch -b <new-branch-name>

 

目录
相关文章
|
6月前
|
编译器 开发工具 git
【Git异常】You are in ‘detached HEAD‘ state, which means that you‘re not on any branch Checkout a branch
【Git异常】You are in ‘detached HEAD‘ state, which means that you‘re not on any branch Checkout a branch
64 0
|
2月前
|
开发工具 git
git branch (branchname)
git branch (branchname) 是 Git 中创建和管理分支的一种命令。通过这个命令,你可以根据指定的分支名创建一个新的分支,或者跳转到已经存在的分支上。branchname 参数是可选的,如果不指定,则默认创建或切换到主分支(master 或 main)。
58 8
|
10月前
|
开发工具 git
git branch之后出现end,无法退出终端
git branch之后出现end,无法退出终端
493 0
git branch之后出现end,无法退出终端
|
11月前
|
Shell 开发工具 git
Git detached HEAD解决方案_张童瑶的博客
利用 游离状态 的那个 版本号创建一个新的分支, git branch xxx 游离版本的版本号。这时,这个新创新的分支的代码就是我们 这个版本号中的代码了。在切换分支到主分支master:git checkout master .。最后 把新创建的那个分支融合到我么你的主分支上,这样游离状态的代码就融合到我们主分支上了。游离状态也解除了。
85 0
|
12月前
|
开发工具 git
git branch分支怎么玩来看看吧
有时候我们在开发的过程中,难免有很多不一样的情况,有时候可能就需要根据本地的分支进行创建临时的分支,然后又有时候需要根据同事创建的远程分支,再来创建本地分支。
95 0
|
Shell 开发工具 git
git fatal: branch ‘master‘ does not exist
git fatal: branch ‘master‘ does not exist
473 0
git fatal: branch ‘master‘ does not exist
|
开发工具 git
git提示:There is no tracking information for the current branch
git提示:There is no tracking information for the current branch
150 0
git提示:There is no tracking information for the current branch
|
缓存 开发工具 git
git将本地项目上传到线上时遇到的一些问题:There is no tracking information for the current branch.
git将本地项目上传到线上时遇到的一些问题:There is no tracking information for the current branch.
151 0
git将本地项目上传到线上时遇到的一些问题:There is no tracking information for the current branch.
|
开发工具 git
执行git rebase提示:Current branch xxx is up to date.
执行git rebase提示:Current branch xxx is up to date.
306 0
|
缓存 开发工具 git
Git问题:git branch -a命令无法显示最新分支问题
Git问题:git branch -a命令无法显示最新分支问题
379 0
Git问题:git branch -a命令无法显示最新分支问题