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

本文涉及的产品
全球加速 GA,每月750个小时 15CU
简介: /*************************************************************************** * 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>

 

目录
相关文章
|
编译器 开发工具 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
764 0
|
开发工具 git
git branch (branchname)
git branch (branchname) 是 Git 中创建和管理分支的一种命令。通过这个命令,你可以根据指定的分支名创建一个新的分支,或者跳转到已经存在的分支上。branchname 参数是可选的,如果不指定,则默认创建或切换到主分支(master 或 main)。
397 8
|
开发工具 git
Git 中的 fork、branch 和 clone
【8月更文挑战第27天】
1402 5
|
Java 开发工具 Android开发
Android Studio利用Build.gradle导入Git commit ID、Git Branch、User等版本信息
本文介绍了在Android Studio项目中通过修改`build.gradle`脚本来自动获取并添加Git的commit ID、branch名称和用户信息到BuildConfig类中,从而实现在编译时将这些版本信息加入到APK中的方法。
500 0
|
开发工具 git
idea的git reset current branch to here操作详解
idea的git reset current branch to here操作详解
1860 1
|
开发工具 git
避免git产生Merge branch 'foo' into 'bar'提交
避免git产生Merge branch 'foo' into 'bar'提交
225 3
|
开发工具 git
git branch之后出现end,无法退出终端
git branch之后出现end,无法退出终端
1065 0
git branch之后出现end,无法退出终端
|
Shell 开发工具 git
git fatal: branch ‘master‘ does not exist
git fatal: branch ‘master‘ does not exist
1096 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
551 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.
394 0
git将本地项目上传到线上时遇到的一些问题:There is no tracking information for the current branch.