811 likes | 2.32k Views
Slideshow about Code Collaboration With Git & Stash (and Bamboo)
E N D
Code Collaboration with Git + Stash + Bambo
Sven Peters Happy Ambassador @svenpet http://svenpet.com
The trouble starts with the team
It's not your code It's your teams code
get help C D E T GETHER
C T GETHER D E Bringing code together Sharing code with others Protecting your code Your coding workflow!
C T GETHER D E Bringing code together
Branching is cool!
Are you crazy?
MERGE HELL
Branching is cool!
DVCS rocks Git Mercurial
A branch for every issue
Branches have short lives ~ 2 days
What about Continuous Integration ?
Builds set up for the main branch
This is not Continuous Integration
Auto merge branches Option #1 change master feature branch push changes
Auto merge branches Option #2 change feature branch master push changes
C T GETHER D E Sharing code with others
Do you have such a team member? I've written that code. It's faster when I just fix it. I can't tell you how this works. It's too complicated. This is a very sensitive area... You can easily break things
Do you have such a team member? I want to protect my job!
Do you have such a team member? him! Fire
feel better learn better quality blame Why do you want to discuss your code changes?
use Pul Requests Discuss your code changes before they get merged!
use Pul Requests create what do you think?
use Pul Requests invite what do you think?
use Pul Requests discuss & approve what do you think?
use Pul Requests merge what do you think?
use Pul Requests involve I know @Ben has already written an algorithm for that
Dem Time
Share and Collaborate on Code is great !
Share and Collaborate on Code should be easy and fast
Simple Workflow Merge Pull Request Branch
Simple Workflow No Roles Merge Pull Request Branch
C T GETHER D E Protecting your code
C T GETHER D E Make sure....
Simple Workflow No Roles Merge Pull Request Branch
Simple Workflow No Roles Merge Pull Request Branch
Simple Workflow Some Roles Merge Pull Request Branch
#1 Making sure that theright peoplecan merge code into theright branches
ReviewRules minimum two aprovals Merge Pull Request
ReviewRules Merge Pull Request
#2 Making sure that thesomebodyreviewed the code