首页 > 解决方案 > 无法拉取和推送到 Git

问题描述

我正在做一个我每天都在推动和推动的小组项目。我现在尝试拉,但收到此消息当我在终端中Your repository has no remotes configured to pull from. 写入时,我收到此消息git remote -v

origin  https://github.com/Elmassri/SE-Project.git (fetch)
origin  https://github.com/Elmassri/SE-Project.git (push)

所以我不知道问题是什么以及如何解决它。

我不知道这是否相关,但git status给了我这个

error: object file .git/objects/b6/8df11599b94d5dad001ac7bfff4b5cb07eb30b is empty
error: object file .git/objects/b6/8df11599b94d5dad001ac7bfff4b5cb07eb30b is empty
error: object file .git/objects/b6/8df11599b94d5dad001ac7bfff4b5cb07eb30b is empty
fatal: loose object b68df11599b94d5dad001ac7bfff4b5cb07eb30b (stored in .git/objects/b6/8df11599b94d5dad001ac7bfff4b5cb07eb30b) is corrupt

标签: gitgithubvisual-studio-code

解决方案


尝试克隆远程存储库

git clone https://github.com/Elmassri/SE-Project.git

推荐阅读