branch

How should I get rid of TFS Branches properly?

狂风中的少年 提交于 2019-12-03 04:12:20
问题 I am wondering how I should properly get rid of branches that no longer have any purpose. Right now even if i delete them and commit they are still listed as branches in the properties windows for a particular branching root (directory). If I select merge I don't get an option to merge to the deleted branch which obviously is as expected but therefore I am puzzled about the branch still showing up in the properties window. Any explanation on this behavior would be greatly appreciated. 回答1: I

Is it possible in git to create a new, empty remote branch without pushing?

↘锁芯ラ 提交于 2019-12-03 03:46:58
问题 Most examples of creating remote branches involve pushing from a local branch Is there a way of creating an empty remote branch without pushing? Is it also possible to create a local empty branch,check it out then link it to the new also empty remote branch without pushing? 回答1: As mentioned in the blog post "Start a New Branch on your Remote Git Repository": Creating a Remote Branch git push origin origin:refs/heads/new_feature_name Make sure everything is up-to-date git fetch origin Then

Merging from branch to trunk with 'Merge range of revisions'

帅比萌擦擦* 提交于 2019-12-03 03:25:20
I have merged in Subversion/TortoiseSVN like this a few times: Method A: 1) I change the trunk and commit. 2) I make other changes in a branch and commit. 3) In a working copy from trunk: I merge from the branch using TortoiseSVN's 'Merge a range of revisions'. 4) Then I commit the trunk and delete the branch. However, the TortoiseSVN-manual recommends the following instead of 3) and 4): Method B: 3*) In a working copy from the branch: Merge changes from trunk using TortoiseSVN's 'Merge a range of revisions'. 4*) Commit the branch including trunk changes. 5*) In a working copy from the trunk:

Is it possible to view multiple git branches at the same time for the same project?

有些话、适合烂在心里 提交于 2019-12-03 03:24:59
问题 I have 2 branches, which are not ready to be merged yet, but have some complementary logic, which I'd like to review (before merging) Can I check out multiple git branches of the same project? Is it possible? 回答1: You can simply copy the repository to a new location (either by literally copying the directory, or using git clone --shared) and check out one branch per location. You can also use git-worktree for creating multiple working directories from a single instance of a repository.

How to get particular Marker id in Google Map iOS SDK

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am working on google map iOS sdk. Here I create multiple markers in separate location co-ordinates. Now I need to add identifier such like TAG for all markers to perform action for particular marker. If TAG or some other identifier option is not available in google map iOS sdk, please suggest me how to archive it. Thanks in Advance. 回答1: What I do is that I simply inherit the GMSMarker and add whatever data I need to it like this, I guess this is the best and easiest option you have. @interface ATGoogleMapsSelectiveMarker : GMSMarker

Can you delete multiple branches in one command with Git?

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'd like to clean up my local repository, which has a ton of old branches: for example 3.2 , 3.2.1 , 3.2.2 , etc. I was hoping for a sneaky way to remove a lot of them at once. Since they mostly follow a dot release convention, I thought maybe there was a shortcut to say: git branch -D 3.2.* and kill all 3.2.x branches. I tried that command and it, of course, didn't work. 回答1: Not with that syntax. But you can do it like this: git branch -D 3.2 3.2.1 3.2.2 Basically, git branch will delete multiple branch for you with a single invocation.

How can I create a branch for a non-tip revision in Mercurial?

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my repo, I have the revisions 1 to 10. I've pushed up to 5 (so the next hg push would publish revisions 6-10). But I have to interrupt my work now and the result isn't 100% complete. So I'd like to move the revisions 6-10 into a new "experimental" branch to allow someone else to complete the work without disrupting the sources for everyone. How can I add a branch to a non-tip revision (in my case: Starting with revision 6)? Or should I use a completely different approach? 回答1: You cannot apply a branch name after the fact without

Error on branch creation: “warning: refname 'master' is ambiguous.”

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've had simple project being managed in a Git repository. To date I haven't intentionally created any branches, but when I tried to create my first today using $ git branch mybranch I see this error: warning: refname 'master' is ambiguous. fatal: Ambiguous object name: 'master'. Digging deeper: $ git branch -a * master remotes/master/HEAD -> master/master remotes/master/master Is this normal to see in Git? Have I cloned my repository incorrectly? What is the best way to resolve this problem? 回答1: It seems it's ambiguous because your remote

Relocating SVN working copy following branch rename

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Is there a way to alter the branch to which a working copy relates? Another developer has renamed the branch im wokring on, so I cant commit any work any more. Could I just edit all the .svn directory files to point to the new location? 回答1: From the working copy directory: svn switch http : //server/svn/branches/newbranch 回答2: You almost answered it yourself, you can do this by relocating: svn switch -- relocate FROM TO for example svn switch -- relocate http : //server/svn/repos/branches/foo \ http : //server/svn/repos/branches

How to change the default target branch for merges in Gitlab

匿名 (未验证) 提交于 2019-12-03 03:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: we are using Gitlab 8.10.1 with many groups and projects. Many of the projects happen to be forks of other projects. Our problem is that whenever somebody opens a merge request for a project the default target branch is NOT the default branch of the project but from one very specific other project. Is there a way to override this setting somehow? Just to make it clear, I know how to set the default branch of a project and those settings appear to be correct, however gitlab doesn't seem to use them when creating merge requests. This issue is