git - 无法拉取和推送到 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
解决方案
尝试克隆远程存储库
git clone https://github.com/Elmassri/SE-Project.git
推荐阅读
- python - 如何仅从 Python 中的 Dictionary 末尾删除单引号
- r - 使用神经网络更新 R 中的 DQN
- python - 更改列表值并再次运行该函数后,该值将重置为原来的值
- node.js - 在退出之前,异步 lamdba 是否会运行事件循环中的每个事件(没有等待)
- ios - 如何将字符串转换为 Int?迅速
- activemq-artemis - Web 应用程序和 ActiveMQ Artemis 通过 VM 协议进行通信的问题
- python - 根据条件拆分列表的最佳实践
- qt - 何时使用 Qt 图形浮点类?
- excel - 带有 Adodb 查询的下拉列表
- git - 可以将稀疏结帐模式添加到 .gitmodules 中吗?