简体   繁体   中英

Pulling changes for a branch from remote

I'm currently working with 2 others engineers on the same branch. we're working of separate controllers(or just separate files), i'm unable to use git pull origin/<Branch> to update my branch with my teammate's commits. Following error is shown:

fatal: 'origin/<Branch>' 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.

How do I pull my teammate's changes?

PS is it good practice for different engineer's to be working on the same branch?

Try git pull origin <Branch> (no / ) That's the syntax shown in git-scm.com/docs/git-pull .

In case an error about "origin" persists, try git remote -v to check if the URL you mean is indeed abbreviated as "origin" or maybe has a typo.

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