branch

How does Mercurial work with many developers?

拜拜、爱过 提交于 2019-12-03 16:16:15
问题 I look at Mercurial repositories of some known products, like TortoiseHg and Python, and even though I can see multiple people committing changes, the timeline always looks pretty clean, with just one branch moving forward. However, let's say you have 14 people working on the same product, won't this quickly get into a branch nightmare with 14 parallel branches at any given time? For instance, with just two people, and the product at changeset X, now both developers start working on separate

Do git tags apply to all branches?

笑着哭i 提交于 2019-12-03 16:14:09
问题 I'm getting my feet wet with git tagging, but my previous background is in Subversion, where "tags" were really just copies, not "real" tags... If I add a tag to a git repo, is it applied to all branches or only the current one? For example, if I currently have these branches ( git branch -v ): * master deadbeef My master head comment dev baddfeed My def head comment And the currently checked out branch is master, as you can see. Now suppose I git tag -a TAGNAME , does TAGNAME apply only to

Folder converted to branch?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 16:05:30
问题 In TFS (We are using 2012) why is the default to convert your source folder to a branch? I really don't consider the source a branch. What, if any, advantages/disadvantages does this have? 回答1: I'm not sure what you mean by "I don't consider the source a branch" the source folder by definition becomes a branch as soon as you create a branch from it. The target folder is also a branch which is a child of the source branch. There are no disadvantages to enabling this. Regardless of whether you

How do I use git-new-workdir on windows?

南楼画角 提交于 2019-12-03 15:45:36
I have a repo that has two branches, which i would like to work on simultaneously. After some reading I found git has a script git-new-workdir . Im trying run use the script from the git for windows bash but get the following error. $ git-new-workdir sh: git-new-workdir: command not found How do I use this script on windows ? Due to some of the commands in the git-new-workdir functions not existing on windows, the script won't work. I have found this windows port of the script. Works great for me. https://github.com/joero74/git-new-workdir VonC Git 2.5 (Q2 2015) will replace contrib/workdir

What's your ideal branch architecture within git for web applications?

为君一笑 提交于 2019-12-03 15:00:56
We're a small team of developers and building a web application. We're currently having a live, testing and several development environments. What branch architecture would you suggest, so ideally each developer can work on his feature(s), these can be tested and deployed without tangenting other developers/features? Currently, each developer has its own development branch and rebases into the testing branch. As soon as a feature is approved, the developer rebases his changes into the master. This works as long as the features are tested immediately. However, if one developer is working on the

Share publically a part of a private repo on Github

两盒软妹~` 提交于 2019-12-03 14:34:36
I'm wondering what's the best way to publically share on Github a file that's on a private repo on Github. I would like thet every time a make a push in my private repository automatically the file is updated too. In particular I have a .tex project: I would like to keep secret the tex files but I would like to make available to everyone the pdf file. Note I'm aware of the existence of the gitignore option, but I don't want to use it since I want to keep track of the improvements on the tex files I would like to keep secret the tex files but I would like to make available to everyone the pdf

git merge with --no-ff and --squash

自作多情 提交于 2019-12-03 13:26:38
I am using the git flow way of managing branches in my repo, as described in: http://nvie.com/posts/a-successful-git-branching-model/ Thus the sequence of commands I should use would be as follows: git checkout mybranch git pull --rebase origin develop git checkout develop git merge --no-ff mybranch However, there is one thing that I would like to do differently, in some cases: I would like to preserve all of my commits on my feature branch ( mybranch ), but have them lumped together (or squashed) into a single diff when merging into develop . So this is what I think the sequence of commands

How to persist branching logic into database?

瘦欲@ 提交于 2019-12-03 13:26:34
We are building a survey engine for our internal use. I would like to know how to persist the question branching logic into the database? Any body done this before or any ideas on the schema for the database? If the user responses with an answer, we need to skip to the next questions based on the logic added to the questions Each question can have multiple logic added to it. For eg: Question: Is it Sunny, Raining or Cloudy? Answer: Raining. The next question should be based on the previous answer. if(Raining) { } if(Sunny) { } if(Cloudy) { } how do I persist the above to the database and go

Merge/Branch Strategy

邮差的信 提交于 2019-12-03 13:09:36
We are trying to implement the "Basic Dual Branch Plan" as described by the ALM Rangers in the latest Visual Studio TFS Branching and Merging Guide . From the guidance: The basic branch plan with a MAIN, DEV, and RELEASE branch enables concurrent development for your next release, a stable MAIN branch for testing and a RELEASE branch for any ship blocking bug fixes. Multiple development areas are supported by creating additional development branches from MAIN. These are peers to each other and children of MAIN. Additional releases are supported by creating release branches for each product

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

偶尔善良 提交于 2019-12-03 13:07:35
问题 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