threads / discuss / 31105

Question concerning merge behavior

Subject: Question concerning merge behavior

## tl;dr

2 messages between Jul 26, 2012 and Jul 26, 2012.

replies: 1people: 2as markdown or json

Defcon0· Jul 26, 2012, 11:30 UTC · lore
Hello,
I'm quite new to git and have the following situation:

I have a master- and a productive-branch. The productive-branch lives on a server (productive environment) and the master is for the devs to play around ;-) Hot fixes and patches are primarily done in the productive branch. New features are done in the master branch.

Now the question is, let's say, I did a stability fix in the productive-branch and want that one also in the master branch (which contains several new features). Will I have conflicts then with files modified in the master- but not in productive-branch? Or will only the modified files from the productive branch be compared with the master branch (and not the modified ones in master)?

And do you think my branching in all makes sense (master for features, branch for production environment)?

Big thanks in advance for any help!!
Bye Defcon0

-- View this message in context: http://git.661346.n2.nabble.com/Question-concerning-merge-behavior-tp7563780.html Sent from the git mailing list archive at Nabble.com.

Greg Troxel· Jul 26, 2012, 12:21 UTC · re: Defcon0 · lore

Re: Question concerning merge behavior

I suggest that you read (all of)
  http://www.git-scm.com/book

and then perhaps ask a question based on more understanding of the merge model and ancestry tracking. The short answer is that git will work quite well in terms of conflict management if your development practices are sane.

← back to recent threads