Merging from one branch to another


i'm having issues merging our main development branch our test branch.

before worked great, we're restructuring our code, we've moved 100 files around.

i tried merging changes totally screwed branch up. we're going re-do branch, in future there way pure "copy & overwrite" 1 branch another?

you use tf.exe.

--- save script.tfc ---
merge %1 %2 /r
resolve %2 /r /auto:accepttheirs
checkin %2 /r
--- save script.tfc ---

then run tf @script.tfc $/path/to/source $/path/to/target

note potentially dangerous thing do: tfs throws merge conflicts reason, namely, wants human verify right thing being done.  sidestepping automatic accepttheirs blow away changes made in target.  (you can them -- that's source control -- point stands.)


Archived Forums V  >  Team Foundation Server - Source and Version Control



Comments

Popular posts from this blog

Reindexing

Users List

List of charts