简体   繁体   中英

Git clone set to origin, could not read from remote repository

My colleague pushed to develop. I have a completely different version of the project of my colleague. He has implemented new features, I can see his commit but they are not included in my project at all.
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.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.

So far I have done:

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

When I use git remote -v

it provides me with

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

I have also re-installed git, even downloaded as .zip the develop branch and I cannot get the latest changes he has done.

Please help, the project is due on Monday and I need to write some unit tests.

git fetch remote means "fetch all updates from the remote repo called remote ", and you don't have a repo called remote configured.

You want to make it just git fetch . See git help fetch for syntax details.

我们所做的是我们从 develop 创建了一个分支,我设法将其设置为 origin 并且它运行良好。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM