首页 > 解决方案 > Git 克隆设置为原点,无法从远程存储库中读取

问题描述

我的同事推动发展。我的同事的项目有一个完全不同的版本。他实现了新功能,我可以看到他的提交,但它们根本不包含在我的项目中。
git fetch remote

fatal: 'remote' does not appear to be a git repository fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.

到目前为止,我已经完成了:

git clone https://github.com/tihomirtodorov/HotelManagement.git
git checkout -b develop git fetch remote

当我使用git remote -v

它为我提供

origin https://github.com/tihomirtodorov/HotelManagement.git (fetch) origin https://github.com/tihomirtodorov/HotelManagement.git (push)

我还重新安装了 git,甚至将开发分支下载为 .zip,但我无法获得他所做的最新更改。

请帮忙,该项目将于周一到期,我需要编写一些单元测试。

标签: git

解决方案


git fetch remote表示“从名为的远程仓库获取所有更新remote”,并且您没有remote配置名为的仓库。

你想让它只是git fetch。有关git help fetch语法详细信息,请参阅。


推荐阅读