从服务器导入更改后GIT出错 [英] Error with GIT after importing changes from a server

查看:96
本文介绍了从服务器导入更改后GIT出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图确定为什么网站上的某个功能在本地工作,但不是远程工作,所以我的想法是下载远程站点并执行git diff以便发现任何差异。

I was trying to establish why a function on a website worked locally but not remotely, so my idea was to download the remote site and do a git diff in order to spot any differences.

因为我这样做了,所有GIT命令都满足:

Since I did this, however, all GIT commands are met with:

fatal: Unable to read current working directory

我杀了我的回购?这是可逆的吗?

Have I killed my repo? is this reversible?

推荐答案

我遇到过这个问题几次。听起来很愚蠢,关闭终端窗口(或SSH会话)并打开一个新窗口解决了这个问题。

I've run into this problem a few times. As silly as it may sound, closing the terminal window (or SSH session) and opening a new one solves the problem.

这篇关于从服务器导入更改后GIT出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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