Click here to Skip to main content
15,892,927 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: git poll Pin
charlieg10-Jan-19 1:42
charlieg10-Jan-19 1:42 
GeneralRe: git poll Pin
den2k889-Jan-19 21:28
professionalden2k889-Jan-19 21:28 
GeneralRe: git poll Pin
Marco Bertschi9-Jan-19 21:45
protectorMarco Bertschi9-Jan-19 21:45 
GeneralRe: git poll Pin
SkysTheLimit10-Jan-19 8:16
SkysTheLimit10-Jan-19 8:16 
AnswerRe: git poll Pin
dazfuller10-Jan-19 20:10
dazfuller10-Jan-19 20:10 
GeneralRe: git poll Pin
BryanFazekas11-Jan-19 2:25
BryanFazekas11-Jan-19 2:25 
GeneralRe: git poll Pin
loctrice11-Jan-19 3:06
professionalloctrice11-Jan-19 3:06 
GeneralRe: git poll Pin
Mike Marynowski11-Jan-19 6:04
professionalMike Marynowski11-Jan-19 6:04 
I don't understand how everyone working off of the main branch would even work, that seems ridiculous to me. Topic branches are the standard way of doing things and IMO the best way of doing things.

Let's say you and another colleague are tasked with adding a feature, say adding a new window to an app. He starts to work on the view model, and you work on the UI. He finishes a portion of the view model and you want to start testing your UI with it while he finishes the rest. How the heck would you accommodate this without a "feature/new window" branch that you can both push to and pull from? You shouldn't be merging a half-finished view model into the main branch because now everyone else will have a half finished view model when they pull!

Or let's say you get sick and need to take a few days off and someone else has to finish up your work...that means:
a) they can't because you haven't been pushing code from your local repo to a feature branch in the company repo at the end of each day, or
b) he can because you've been pushing incomplete buggy code to the main branch which gets pulled any time anyone pulls the main repo, so now everyone has your half finished code in their code base and has to deal with whatever problems that may cause

The way you were using git before and the issues you are having with it now is clearly an organization and management problem. If you guys had someone good at managing distributed projects directing things it would be a world of a difference. I would suggest hiring a consultant who is good at this to help you guys develop a better process.

Everyone should be committing many times a day to their local repo, and pushing to the company repo at the end of each day or when they finish something and want to share progress with someone else working on the topic. If the main branch gets some significant updates then you can merge those with the topic branch regularly so that when you finally finish the topic 2 weeks after you started you don't have 2 weeks of merge conflicts to fix all at once, rather you only have to deal with any issues from the last merge you did a day or two ago.

Responsibility should be managed such that people working on different topics are extremely unlikely to change the same files.

Git is a beautiful thing if used properly, but that requires good management with well thought out processes, discipline on the dev team and well organized code with good separation of concerns.

GeneralRe: git poll Pin
Plamen Dragiyski11-Jan-19 7:53
professionalPlamen Dragiyski11-Jan-19 7:53 
GeneralRe: git poll Pin
Gerry Schmitz11-Jan-19 9:01
mveGerry Schmitz11-Jan-19 9:01 
GeneralRe: git poll Pin
John Stewien12-Jan-19 23:53
John Stewien12-Jan-19 23:53 
GeneralRe: git poll Pin
Mark J. Miller14-Jan-19 10:50
Mark J. Miller14-Jan-19 10:50 
GeneralThis just saved me a whole bunch of typing and time PinPopular
Marc Clifton9-Jan-19 8:44
mvaMarc Clifton9-Jan-19 8:44 
GeneralRe: This just saved me a whole bunch of typing and time Pin
Michael Martin9-Jan-19 9:40
professionalMichael Martin9-Jan-19 9:40 
GeneralRe: This just saved me a whole bunch of typing and time Pin
#realJSOP9-Jan-19 9:45
mve#realJSOP9-Jan-19 9:45 
GeneralRe: This just saved me a whole bunch of typing and time Pin
Rage9-Jan-19 20:40
professionalRage9-Jan-19 20:40 
PraiseRe: This just saved me a whole bunch of typing and time Pin
Richard Deeming9-Jan-19 9:44
mveRichard Deeming9-Jan-19 9:44 
GeneralRe: This just saved me a whole bunch of typing and time Pin
Marc Clifton10-Jan-19 2:09
mvaMarc Clifton10-Jan-19 2:09 
GeneralRe: This just saved me a whole bunch of typing and time Pin
Harrison Pratt11-Jan-19 1:32
professionalHarrison Pratt11-Jan-19 1:32 
GeneralRemember the classic book, Code Complete? PinPopular
raddevus9-Jan-19 8:40
mvaraddevus9-Jan-19 8:40 
GeneralRe: Remember the classic book, Code Complete? Pin
Marc Clifton9-Jan-19 8:50
mvaMarc Clifton9-Jan-19 8:50 
GeneralRe: Remember the classic book, Code Complete? Pin
raddevus9-Jan-19 8:53
mvaraddevus9-Jan-19 8:53 
GeneralRe: Remember the classic book, Code Complete? Pin
David Crow9-Jan-19 10:50
David Crow9-Jan-19 10:50 
GeneralRe: Remember the classic book, Code Complete? Pin
raddevus9-Jan-19 11:50
mvaraddevus9-Jan-19 11:50 
GeneralRe: Remember the classic book, Code Complete? Pin
Jim_Snyder14-Jan-19 5:51
professionalJim_Snyder14-Jan-19 5:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.