Git workflow for a small team of developers and designers

I'm getting lost with Git branching model and the workflow that I want to create for my team (developers + designers).

Suppose that the project is based on a MVC pattern, so we have a structure similar to :

Models/ Controllers/ Views/

Developers works on the M & C parts with some basic/generated views (Rails, Django or CakePHP app for example) and Designers works on the V part

How can I manage that developers works on M&C and keep some basic crappy views, and in the same time, designers make sexy views based on controllers actions coded and added by developers progressively ?

I tried to make it works with 3 branches :

master (production-ready) dev ui

but no idea how a designer working on ui branch can keep the code elsewhere than /views updated an a working app...

Thanks folks for help !


With git, there's no reason for developers to work on a separate branch or to have mocked up views. Have designers and developers work in the same branch, on the same codebase. When a view is done (or at least improved and not crashing) have the designer commit and push them to a master repository. The same is true for developers: when a local change is 'done', have them commit it and push it.

Before pushing, each side needs to pull (to ensure there are no conflicts). If the two groups are working in mutually-exclusive pieces of code (separate files or even separate parts of the same files), then the pull will simply update the local copy and all will work well.

With this, both sides are always seeing the most up-to-date codebase, and contributing directly towards the exact end goal, watching it evolve.

Need Your Help

How to show selected View in an Activity first

android android-layout

I have a activity in Android TextView followed ListView again TextView. The content of first TextView fills the whole screen and in order to see the ListView and second TextView the user has to

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.