branching-and-merging

TFS — Sustainability of Cascading Branches

烈酒焚心 提交于 2019-12-05 02:19:15
问题 Branching guidance usually describes an immortal "Main" branch, with features branched from Main, and merged back to Main, and Releases branched from Main, with further branches of a Release as necessary for Service Packs, RTMs, etc. The guidance regarding Main is often simplified to "no trash in Main." I'm working with a group that releases regularly (as often as monthly) and serially. To them it seems unnecessary to ever return work to the Main branch. They use TFS 2010--diagramatically

git: merging a subtree from one branch to another

余生长醉 提交于 2019-12-05 01:55:31
I'm having trouble merging a subtree of a development branch back into the integration branch. I have two branches, one was used for development and one is used for integration. Extensive development has been done in the development branch and I want to merge a portion of it back in. The specific portion that I want to merge is all contained in one subtree of the development branch. My directory structure is like this: [Branch A] [Branch B] | | +--Dir1 +--Dir1 +--Dir2 +--Dir2 | | | +--DirA | +--DirA | | | +--File1 | +--File1 +--File2 | +--File2 | +--File3 | +--File4 +--Dir3 I want to merge

Git subtree merge strategy or subtree command?

こ雲淡風輕ζ 提交于 2019-12-05 01:33:05
问题 I'm starting a new Zend Framework project in which I will collaborate with a designer. I'm going to maintain this project code using git and usually designers don't speak git (or any programming language) so I wanna make things easy for him, otherwise I'm afraid he won't use git at all. My plan is to give him some Git gui and with that he should use only basic git features such as commit, diff, fetch, merge, push and pull. I'm using gitolite to maintain the shared copy of our git repository

How can QA test multiple features at once with feature branching in Gitflow workflow?

孤人 提交于 2019-12-04 18:23:41
If developers were to work on different branches for different features I understand that they can give a QA build from the feature branch and once it is tested it can be merged with "develop". But if the QA team is fairly large and can test multiple features at once how can they be given a build containing features that are residing in different branches? VonC But if the QA team is fairly large and can test multiple features at once how can they be given a build containing features that are residing in different branches? That would be by: setting up an integration branch, reset to the latest

Git won't let me merge

自作多情 提交于 2019-12-04 09:51:24
Good evening! I know this is very usual and there are probably thousands of answers on the internet but I couldn't find one that was helfull. I have two local branches: MASTER Mk I made a lot of changes to Mk, committed these, and switched to MASTER to merge these two branches. But there were conflicts. So now I am on the MASTER branch, can not switch to Mk anymore, but need to override my MASTER with Mk. It keeps saying error: Your local changes to the following files would be overwritten by merge Is there a way to do this? git mergetool --tool=meld #No files need merging git merge -s theirs

Move branch to another branch

寵の児 提交于 2019-12-04 08:56:21
问题 I have started doing some work on a branch which I have in term realised was the wrong branch. Is there a way to move a branch to a different branch. For example: A -- B -- C -- D -- HEAD \-- E -- F -- G -- H -- I -- J \-- K -- L And I want this: A -- B -- C -- D -- HEAD \ \-- K -- L \ \-- E -- F -- G -- H -- I -- J 回答1: Let's say you've named your branches like so: A -- B -- C -- D (master) \-- E -- G -- H -- I -- J (current-parent) \-- K -- L (my-branch) What you want to do is rebase my

Perforce, How to integrate a change to another branch?

*爱你&永不变心* 提交于 2019-12-04 08:23:40
问题 I have trunk and a release branch. If I fixed a bug in release branch, I definitely should integrate the fix back to trunk. However, I didn't find a command dedicated to integrate such a single change list; did I miss something? 回答1: To integrate changelist 100, for example, you'd use: p4 merge //releasebranch/...@=100 //trunk/... p4 resolve p4 submit (If you have an older Perforce server you'll have to use 'integ' instead of 'merge'.) Note that '@=100' means the same thing as '@100,100' in

TFS branching, what are the advantages

泄露秘密 提交于 2019-12-04 06:14:46
I am pretty new to TFS and source control. I unable to understand the advantage of branching. Since i can do the same stuff by creating 2 folder main and development, when I am done with development.I can merge the code using any diff tool with the main branch. Then whats the point of having branches ? I know there must a huge advantage but i am unable to understand. (UPDATE: TFS now supports git for version control so the rest of this answer no longer applies) I would google branch-per-feature. The main advantage of branching is that you can work on a feature and not be interrupted by anyone

Script to merge 2 git branches automatically?

北慕城南 提交于 2019-12-04 04:28:44
My git repository has 2 branches: master and develop. I want a script that merges all changes from develop to master automatically. I used Jenkins: The Git plugin clones the repository and then this script (the 'version' variable is a job parameter) is run: # merge git checkout -b develop origin/develop git checkout master git merge -Xtheirs --squash develop -m "v${version}" # commit git commit -m "v${version}" # tag git tag v${version} -m "v${version}" # push git push origin v${version} I tried it on a test repository and it fails with: git merge -Xtheirs develop CONFLICT (delete/modify):

How to merge files from one branch's directory into another branch?

孤街浪徒 提交于 2019-12-04 04:28:23
Simple example. This is 'master': root - index.html - readme.md This is a branch called 'dev': root src - index.jade dist - index.html I'd like to take the index.html file (or all files, really) in the 'dist' folder of the 'dev' branch and replace or merge it with the one in the root directory of my master branch. I've tried, from master: git checkout dev dist/ But it produces this result: root dist - index.html - index.html Clearly not what I want. Is git capable of doing what I want it to do or will I just have to whip up a script? Thanks! This can be accomplished using the subtree merge