branch

How to realise a deployment branch in Git

无人久伴 提交于 2019-11-27 19:25:11
I'm using git for a PHP project, I think it's really handy. There is one thing that would be great if I get it to work. I have created a branch, meant for deployment. It has some differences, like different configuration files and documentation. I can't just ignore them, because then they will stay in both branches, while I would like to keep them different in both branches. The problem is that when I merge the branches, those files that are meant to be different are merged too. Is there any convenient way to accomplish such a thing? How is this normally done? I am not sure Git is meant to be

How can I see what branch another branch was forked from?

与世无争的帅哥 提交于 2019-11-27 19:22:07
My git repository has three branches, devel , stable and customers/acme_patches . A long time ago, stable was forked from devel , and all the bugfixing takes place in stable . Every now and then, stable is merged back into devel . customers/acme_patches is a branch with a few customer-specific patches. The branch wasn't merged into either of devel and stable . A bit of ASCII art to illustrate the scenario: o---o---o customers/acme_patches? / o---o---1---o---o---o stable / \ \ o---o---o---2---o---o---o---o devel \ o---o---o customers/acme_patches? Now I wonder: What branch was customers/acme

Meaning of Github Ahead/Behind Metrics

落爺英雄遲暮 提交于 2019-11-27 18:40:49
In plain language (hopefully with a simple example), what do the ahead/behind metrics on a Github repo's branch mean? And what are the implications for that branch and the attention it's receiving? Is being "behind" a bad sign for a branch? Ahead is the number of commits on this branch that do not exist on the base branch. Behind is the number of commits on the base branch that do not exist on this branch. Ahead and behind are almost like a kind of "age" metric. The ahead number tells you roughly how much impact the branch will have on the base branch should it be merged. The behind number

git fetch vs. git fetch origin master have different effects on tracking branch

给你一囗甜甜゛ 提交于 2019-11-27 18:01:50
This is mostly of the nature of a curiosity as I'm trying to get familiar with Git. I have looked at the documentation for 'git fetch' but I don't see an obvious explanation for the below. Thanks in advance, and apologies if this is howlingly obvious. 1) From a central repository, say GitHub, I clone a repository named website on each of two machines, HostA and HostB . 2) on HostA , I make a change to a file, say README.txt , and commit it. At this point on HostA , the commits for branches master and origin/master are, as expected different since I haven't pushed yet git show master git show

How do I “move” my commits from “no branch” to an actual branch?

强颜欢笑 提交于 2019-11-27 17:59:32
I made a mistake, and started making commits "to the last tag", which lands my commits in "no branch". They should have been applied at the head of an already existing branch. I have not pushed my changes yet. I've found a few other question for when commits are in the wrong branch, but now I have no branch, so I don't know how to handle this. Preferably, I would like to erase my mistake entirely, and "move" my changes to the end of the right branch. If I must leave my mistake in the history, I need to merge them in atleast. You are currently in a detached HEAD state. To resolve that, all you

How to 'git pull' into a branch that is not the current one?

老子叫甜甜 提交于 2019-11-27 17:16:21
When you run git pull on the master branch, it typically pulls from origin/master . I am in a different branch called newbranch , but I need to run a command that does a git pull from origin/master into master but I cannot run git checkout to change the selected branch until after the pull is complete. Is there a way to do this? To give some background, the repository stores a website. I have made some changes in newbranch and deployed them by switching the website to newbranch . Now those changes have been merged upstream into the master branch, I am trying to switch the website back to the

Subversion branch reintegration in v1.6 [duplicate]

折月煮酒 提交于 2019-11-27 17:12:44
This question already has an answer here: Subversion branch reintegration 10 answers Per this old question , using SVN 1.5, reintegrating a branch multiple times is problematic, and should be avoided. There has been some rumbling to the effect that, "This is a known issue, and should be fixed in SVN 1.6." Was that the case? Is it fixed? Can I reintegrate multiple times? To merge a branch topic into the trunk repeatedly : Do the following on every merge. svn merge --reintegrate <topic> <trunk> , as you would normally. ( => r M ) svn merge --record-only -c M ^/<trunk> <topic> . Note the record

Making a TFS Branch Read-Only

ぐ巨炮叔叔 提交于 2019-11-27 17:06:03
问题 We are trying to follow the branching strategy from the TFS Branching Guide and have reached the point where we have made a branch representing a release, which should now be made read-only. In the Properties|Security tab for the branch, it presents six user groups each with 10 permissions other than Read. Do I have to go through and click Deny on 60 check boxes, or is there a better way to make this branch read-only? 回答1: Right-click the branch in the Source Control Explorer, and select the

Git push: “fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository.”

夙愿已清 提交于 2019-11-27 16:52:37
I know similar questions have already been asked. But, I believe my issue is due to a mistake I have previously made and therefore is different: let me explain. Everything was working smoothly, as I could: git add . all the files from my local repository. git commit -m "message here" to add messages to my commits. git push origin master to upload my files to GitHub. git push heroku master to upload my files to Heroku. However, at some point, I created a new branch locally called add-calendar-model in case next steps of the app development would go south... ... which is exactly what happened.

Backing Out a backwards merge on Mercurial

吃可爱长大的小学妹 提交于 2019-11-27 16:47:54
How do you reverse the effect of a merge on polarised branches without dying of agony? This problem has been plaguing me for months and I have finally given up. You have 1 Repository, with 2 Named Branches. A and B. Changes that occur to A will inevitably occur on B. Changes that occur directly on B MUST NEVER occur on A. In such a configuration, merging "B" into "A" produces a dire problem in the repository, as all the changes to B appear in A as if they were made in A. The only "normal" way to recover from this situation appears to be "backing out" the merge, ie: hg up -r A hg backout -r