git - 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 fetch remote
表示“从名为的远程仓库获取所有更新remote
”,并且您没有remote
配置名为的仓库。
你想让它只是git fetch
。有关git help fetch
语法详细信息,请参阅。
推荐阅读
- javascript - React,MongoDB,Mongoose:如何格式化我的日期以使其可读?
- python - 创建满足条件的变量列表,而无需手动键入它们
- c# - 在特定范围内查找时间
- aws-lambda - 使用 FAAS 执行“setTimeout”或“setInterval”的最佳方法是什么?
- javascript - 如何将新项目添加到 json 并插入到 mongodb
- windows - 为什么选择奇怪地返回错误级别?
- python - 为什么我无法根据另一列中的值替换数据框一列中的这些 NA 值?[Python]
- .net - AWS Codebuild 编译 .net 4 项目
- c++ - 如何仅使用一次固定 << setprecision(2)?或者至少恢复到默认行为?
- python - 通过pickle存储和调用程序文件数据