Git push/pull between team members local repositories -


lets there team 4 developers. have central repository our project. developers push , pull central repository. here(in decentralized centralized section) says possible push/pull between team members local repositories.

each developer pulls , pushes origin. besides centralized push-pull relationships, each developer may pull changes other peers form sub teams...technically, means nothing more alice has defined git remote, named bob, pointing bob’s repository, , vice versa

now question how define remote name bob pointing bob's repository. if matters developers possibly use different operation systems.

it's common thing alice , bob need work on functionality together. in mean time, development should carried on different branches different developers.

simple approach be:

  • create new branch sprint_1, alice , bob checkout sprint_1
  • all changes related functionality should done here
  • push , pull operations should performed using

    git pull origin sprint_1  , git push origin sprint_1 

when changes done , sprint_1 has stable code, merged other branch. if code on sprint_1 has come long way, advised rebase branch merge avoid conflicts or cherry picking.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -