The setup of my repositories is like this:
A web server named LIVE
A server acting as central repo with a bare clone from LIVE, named REPO
A test web server named TEST with a clone from REPO (aka the same files as LIVE)
Egit with eclipse for localhost development and debugging.
If i want to add a new feature to my site i thought i can use a workflow like this..
@LIVE: git push #get the latest files from LIVE server to REPO
@eclipse: "fetch from upstream" #get the latest files from REPO to ECLIPSE
now i create a new branch called "mynewfeature" and when i'm done:
@eclipse: "push to upstream" #push the new branch to REPO
@TEST: git fetch
how can i check here which files(only filenames) will change with merge?
How can i check which files are conflicting before merging?
@TEST: git merge origin/mynewfeature #apply my new feature
now if everything is ok i do:
@LIVE: git fetch #get the new feature to LIVE server
@LIVE: git merge origin/mynewfeature
Is this workflow correct?
My major problem now is conflicts..
with SVN if i had a confict durring update i was asked which file i wanted, with git i get an "auto-merge" which breaks my PHP files.
Can i stop auto-merge when merging files?