Do not disassemble

We just created a project with a bitbucket. We put our "production" [P] code on the repo, and then I created fork [m], and then my [C] employee also created its fork.

    [P]
   /   \
 [M]   [C]

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

That's where I am confused. How does [C] my repo staff get updated code?

Thank!

+5
source share
2 answers

Your employee should pull out of P.

If you are working with a branch masterin P, then the command will be ...

git pull origin master
+9
source

Note: if we are really talking about forking (this is an act of repo cloning on the server side), and not just cloning, then the diagram:

             BitBucket

    ------------[P]-----------
    |            ^           |
    |            |           |
 (forked) (pull request)  (forked)
    |                        |
    v                        v
   [M]                      [C]
    |                        |
----|------------------------|-----  
    |   Local workstations   |
    |                        |
 (git clone)             (git clone)
    |                        |
    v                        v
 [MLocal]                  [CLocal]

, M C BitBucket, Muser Cuser.
'origin' upstream repo MLocal CLocal, M C, P.
(. " ", GitHub, BitBucket)

Muser, :

  • Muser P ( , , P BitBucket), repo M ""
  • Cuser P,

Cuser, - P, P CLocal (.. )

git remote add P https://bitbucket.org/Puser/P
git pull P master

( CLocal), C, , Cuser. Muser ( P owner) P.

, Muser P MLocal, C, P.

+3

All Articles