切换分支时发生致命Git错误 [英] Fatal Git error when switching branch

查看:204
本文介绍了切换分支时发生致命Git错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误消息:
$ b


致命错误:git checkout:更新路径与切换分支不兼容/强制


如何获得这个Git checkout错误?

解决方案

显式地指定 git checkout HEAD $ blah 而不是仅仅说 git checkout $ blah ,假设你确实想要检查一个文件。



然而,你不会说你正在尝试什么,也不知道你输入了什么,所以没有人能给你任何东西,只是一个盲目的猜测。 / p>

Error message:

fatal: git checkout: updating paths is incompatible with switching branches/forcing

How to get past this Git checkout error?

解决方案

By explicitly specifying "git checkout HEAD $blah" instead of just saying "git checkout $blah", assuming you did want to check out a file.

You don’t say what you were trying nor what you typed, however, so no one can give you anything but a blind guess.

这篇关于切换分支时发生致命Git错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆