github - Deploying with multiple git repos -
for day job, work team of 6. web devs working on single project. our current git setup, running sorts of issues conflicts , things being overwritten causing havoc.
here's our current work flow. have our master branch on github repo. when push changes it, push our production server remote makes our changes "live". our bread , butter.
when have new features or bugfixes need made, create branch based off of master not include experimental or incomplete work. when branch ready testing, push branch on github call "develop".
it should noted develop (at several times in past) has been "synched" have exact same contents master.
we having problems our develop branch.we have few things on our production site not/can not function on develop. have may direct pushes master, without pushing same changes develop first. puts our master branch far ahead in commits on develop branch when merge new branch based off master develop, features pushed develop never made master because scrapped or otherwise not ready overwritten instead of throwing conflict.
trying merge , synch these 2 branches nightmare , come unpredictable results.
tl;dr i'm looking suggestions way can re-organize our git work flow things not keep happening. there features of git available not using might this? or there other solutions out there alltogether may way deploy? suggestions/tips appreciated.
you being 6 developers projects configuration management should simple.
if using github, bitbucket or equivalent can consider using "fork/pull" workflow.
even single branch workflow please ensure following
- do not create / push merge commits
- always rebase code upstream
- create local topic branch
- have correct cr/lf setting
- have correct indentation setting , use uniform editor (vi, emacs, eclipse etc)
- avoid unwanted indentation
- learn git
Comments
Post a Comment