This question is really on branching, and merging. I just got turn on to git last week and I really like it but I have some questions.. everything I read tells me never to work in the master branch. So before I make any programming changes I make a new branch and do my work and then I merge in back into the master... I don't know if this is right so I would like to hear from others.
But how do I handled code going to staging, and production? Do I just tag code in the master or do I make a production branch for each releases.
Please can someone please tell me how to you handled working with code moving to staging, testing and production... Do you use tags or branches or both.