`
hongtoushizi
  • 浏览: 371404 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论

git not currently on any branch

    博客分类:
  • git
阅读更多

     先说自己出现这个问题的原因吧: 

            由于网络问题,git  pull ,git push 结果出现了问题,但是由于网络,有些错误也没能够及时返回。这种错误也遇到过多次,今天经过多次尝试终于把问题解决了。

      步骤如下:  

     1: git rebase --abort

   2: git checkout master

   3:  git rebase origin/master   注意此处, 此处有可能会出现冲突,出现冲突的话,先改正冲突,并通过git add 命令添加到添加到git 中,这样就可以执行第4部了,否则,可能又会出现 not ont branch的错误了。

   4:   git rebase --continue

 这样就大功告成了,。你可以git status   试试,现在已经正常了。。呵呵。。

 

     

 

 

 

 ... redo the merge git rebase --continue

分享到:
评论

相关推荐

    git-cleanup-branch:[不建议使用] Cleanup Git在本地和远程以交互方式合并分支

    git-cleanup-branch 清理Git的小实用程序,可以在本地和远程交互地合并合并的分支。安装支持平台: MacOS X Linux x86_64 从下载二进制文件。 或自行构建。 需要最新的 。 git clone --depth=1 ...

    git did not exit cleanly (exit code 1) .md

    使用TortouieGit拉取代码的时候报git did not exit cleanly (exit code 1)的解决步骤

    git分支示例图branch

    git分支示例图branch

    git branch基本使用

    讲述了git分支的使用,创建分支,修改分支,删除分支,克隆分支

    像 git- filter -branch 一样删除大的或麻烦的 blob,但速度更快。并用 Scala 编写

    像 git-filter-branch 一样删除大的或麻烦的 blob,但速度更快 - 并用 Scala 编写-资助 BFG $ bfg --strip-blobs-bigger-than 1M --replace-text banned.txt repo.git BFG 是一种更简单、更快(快10 - 720倍)的...

    tmux-git, 在Tmux状态栏中,显示当前 git branch的脚本.zip

    tmux-git, 在Tmux状态栏中,显示当前 git branch的脚本 Tmux中的 git-branch tmux-git 在 tmux 状态栏中显示当前目录的git repo 信息,如当前分支。dirtiness 。存储等等。概述在你的Linux终端提示符( 就像我在这里...

    git客户端、服务端安装、代码上传和eclipse安装git插件

    git 客户端、服务端安装、代码上传和 Eclipse 安装 Git 插件 git 客户端安装是在使用 Git 版本控制系统的第一步。安装客户端可以从官方网站下载安装包,或者使用包管理器进行安装。例如,在 Windows 平台上,可以...

    git-update-feature-branch

    git更新功能分支 这是怎么回事 我开始很喜欢用git开发功能分支。 所谓“功能分支”,是指分支在完成后将被压缩为单个(或更多)提交,然后重新基于主分支。... git update-feature-branch -h git upd

    Git源代码管理规范1

    8. 删除分支:`git branch -d [branch name]`、`git branch -D [branch name]` 9. 标签管理:`git tag v1.0` 10. 远程操作:`git clone`、`git remote`、`git fetch`、`git pull`、`git push` 四、操作流程 1. ...

    git指令快速查询-代码管理工具

    git branch 查看本地所有分支 git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支 git branch -r 查看远程所有分支 git commit -am "init" 提交并且加注释 git remote add origin git@192....

    git-pull-branch.7z

    这通常涉及到命令行操作,而`git-pull-branch.7z`提供的文件正是为了解决这个问题,它包含了两个批处理脚本,分别是`git_pull_master.bat`和`git_pull_test.bat`,帮助用户自动化这个过程。 首先,让我们详细了解...

    git命令git命令git命令git命令

    14. 删除远程分支:`git push origin --delete [branch-name]` 或 `git branch -dr [remote/branch]` ### 标签 标签用于标记特定的commit,便于后续引用: 1. 列出所有标签:`git tag` 2. 创建新标签:`git tag ...

    git-cheatsheet——Git常见操作可打印版

    当远程仓库有更新时,用`git fetch`获取最新信息,然后`git merge origin/<branch>`或`git rebase origin/<branch>`来合并更新。如果出现冲突,需要手动解决后再提交。 以上就是Git的一些基本操作,熟练掌握这些...

    《git基础知识》PPT课件.ppt

    3. 删除分支:git branch -d <branch name> 4. 切换分支:git checkout <branch name> 5. 创建新的分支:git checkout -b <branch name> 四、Git 常见使用场景 1. Git 和 Repo 的关系 2. 如何通过 Repo 下载 ...

    git 应用大全

    - `git branch -d <branch>`:删除分支(仅当分支已经合并至其他分支时可用)。 - `git branch -D <branch>`:强制删除分支。 4. **远程仓库交互**: - `git remote add origin <url>`:添加远程仓库。 - `git ...

    node-git-current-branch:使用Node.js获取当前的git分支名称

    npm install node-git-current-branch --save 用法 const getCurrentBranchName = require ( 'node-git-current-branch' ) ; getCurrentBranchName ( ) ; // branch name or false 原料药 getCurrentBranchName(...

    git常见操作指令速记卡《git-cheatsheet》

    当需要检出特定分支时,可以使用`git checkout`,如果要创建一个新的分支,基于当前分支状态,则可以使用`git branch <new-branch>`,再用`git checkout <new-branch>`切换到新分支。合并分支则通常用`git merge ...

    linux系统安装git及git常用命令

    1 安装GIT 代码如下:$ sudo aptitude install git$ sudo aptitude install git-doc git-svn git-email git-gui gitk git软件包包含了大部分Git命令,是必装的软件包,第二行命令也是...(1)git branch 查看本地分支

    git 视频教程

    git视频教程.4.1.Git 命令 - git branch.mp4 git视频教程.4.2.Git 命令 - git branch.mp4 git视频教程.4.3.Git 命令 - git branch.mp4 git视频教程.4.4.Git 命令 - git checkout.mp4 git视频教程.4.5.Git 命令 - git...

    git零基础实战

    - 创建新分支:`git branch <branch-name>`。 - 切换分支:`git checkout <branch-name>`。 - 删除分支:`git branch -d <branch-name>`。 - 合并分支:`git merge <branch-name>`。 - **标签管理** - 创建...

Global site tag (gtag.js) - Google Analytics