I am looking for suggestions for how to structure projects using git repositories and branches.
Assume I want a remote repository, and my project is a website that uses a Flash widget. The Flash widget is compiled from source code that I've written.
To deploy my website, I would like the production server to just be another git client that pulls from the remote repository, but I don't want the source code for the Flash widget to be in my production server's working copy.
I could do this by having a "master" branch that contains both src/ and www/ and a "www" branch that only has "www/". But then my dev team needs to remember to checkin website-related changes to the www branch, and Flash source code changes into master.
So two questions: how does this solution compare to your own projects? And, have you found that in your teams your developers have difficultly keeping track of branches, and accidentally committing and pushing changes that should be in one branch onto another?