Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't understand forking

Tags:

git

bitbucket

We just set up a project with bitbucket. We put our 'production'[P] code on a repo, and then i created a fork[m] of it, and then my co-worker[C] also created a fork of it.

    [P]
   /   \
 [M]   [C]

I made some changes, and created a pull request and accepted it, so [P] now has my code, [M].

Here is where I am confused. How does [C], my coworkers repo get the updated code?

Thanks!

like image 860
Kyle Avatar asked Apr 13 '12 23:04

Kyle


1 Answers

Your coworker needs to pull from P.

If you're working on the master branch in P, then the command would be...

git pull origin master
like image 51
Amber Avatar answered Oct 20 '22 11:10

Amber