I’m using git-tfs, and I was wondering if it is possible to merge two TFS branches using git-tfs. I have two branches $/MyCompany/Dev & $/MyCompany/Release-3.3. Release-3.3 originates from the Dev branch. Both are checked out as different git repositories using git tfs.
I’d like to re-incorporate the changes back into the Dev branch. Can this be achieved with git-tfs or will I have to resort to trying to do it using TFS tools?
I found an awesome, if hacky way of doing this. Git tfs manages it’s awareness of areas of TFS using git config. Specifically 3 attributes per
remote; url, repository and fetch, for example:You can add another
remoteby setting these 3 properties again with a different name todefault. Eg:You may need to issue
git tfs bootstrapnow.You can then issue:
Then merge the commits using: