Questions tagged [branch]

A "branch" is a term used in version control systems to represent an independent line of development. Depending on the system, a repository can contain one or more branches. Branches are merged when changes need to propagate from one branch into another.

A "branch" is a term used in version control systems to represent an independent line of development. Depending on the system, a repository can contain one or more branches. Branches are merged when changes need to propagate from one branch into another.

Source: Wikipedia Branch (Version Control)

Related tags:

5403 questions
3
votes
1 answer

How do I replace a dependency of a third-party nuget package?

This question is currently hypothetical, but has a real basis. NuGet package A by vendor X depends on NuGet package B by vendor Y and System.Runtime by Microsoft. We have found it necessary to branch B (it's open source) to B' to fix a bug in B that…
Joshua
  • 40,822
  • 8
  • 72
  • 132
3
votes
3 answers

Branching strategy for configurable software

I'm working on an application which is produced for various sets of customers. Depending on the customer, the software's user interface elements may vary. For example, one customer might need menu item X, while the another customer gets menu item…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
3
votes
1 answer

mercurial subrepos at the current revision of a specific branch

I'm quite new to mercurial, I've read a lot of topics on this subject but I still can't understand if I can achieve what I'm trying to do. Basically I'd be interested in cloning the current revision of a branch from a main repository and its…
user533784
  • 121
  • 1
  • 4
3
votes
1 answer

Restore broken branch/resolve detached HEAD state?

After restarting my computer, 'git commit' & 'git status' both return an error message: error: bad signature fatal: index file corrupt running 'git branch': fatal: Failed to resolve HEAD as a valid ref. running 'git log': fatal: your current branch…
Don
  • 3,876
  • 10
  • 47
  • 76
3
votes
1 answer

Create git branches in multiple repositories at the same time

I have twenty git repositories on github and I want to be able to create a branch in all the twenty repositories with one command or click (without going through to all the twenty repos manually one at a time). I do understand that I may write a…
Arsalan Siddiqui
  • 181
  • 2
  • 11
3
votes
1 answer

How to move a branch in SVN to trunk?

how can I move a SVN branch into trunk ? The problem I face is, that if I do a move command in SVN (command line or inside Eclipse) I only can move the branch folder into trunk, resulting to have that folder in trunk. But I want to have all content…
Emerson
  • 1,327
  • 2
  • 15
  • 24
3
votes
2 answers

How to log every branch last commit time?

How to log every branch last commit time? Log the time relative today is excellent. I know git branch -v show sha1 and commit subject line for each head. I see the commit sha1, however, I don't remember each commit time.
jiexishede
  • 2,473
  • 6
  • 38
  • 54
3
votes
4 answers

Can git branches be listed with numbers?

I was wondering if anyone had built a script or had a way to list git branches with numbers so that instead of this (preferably in…
Hardev
  • 10,851
  • 2
  • 17
  • 17
3
votes
1 answer

What does a hashtag # mean after a git branch

When I created a repo there was a # after the master branch (master #) then creating a branch, it also had the # (branch #) It disappeared after adding and committing. However, now there is not a master branch in the repo, just a created branch,…
CJ Jean
  • 971
  • 1
  • 8
  • 10
3
votes
2 answers

Change Git Parent Branch

Let's say we have a branching structure like: develop -> --- a --- b --- c \ \ feature 1 -> \ --- d --- e \ feature 2 -> --- f --- g After doing work on feature 1, I…
dpaulus
  • 422
  • 6
  • 16
3
votes
3 answers

maintain different versions of the code simultaneously using git

I got a code that I'm required to optimize. I would like to maintain a set of versions of the code (each version can be described as a composition of some features, optimizations) simultaneously. Eventually, I'll decide which version is the best…
Daniel
  • 41
  • 3
3
votes
3 answers

How to get the SHA of the base commit a branch is started from?

C E | / B D | / A How to get the SHA of the commit A if E is the current HEAD?
Marc
  • 2,900
  • 3
  • 26
  • 40
3
votes
2 answers

How can I download only the necessary parts of a remote project in Git?

If you are working on a large remote repository and you want to restrict the download to the few branches you are working on, how do you configure the git-clone command, assuming that it is the right command in this case?
vfclists
  • 19,193
  • 21
  • 73
  • 92
3
votes
0 answers

Read Entity Framework "update model from Database" connection string from other source than app.config (Dev branch DB)

My project: I have a c# data project (currently in TFS, but it will be moved to git) with multiple branches. Most branches have their own development database (on an azure SQL server) I am using Entity Framework 6 (Database first with edmx Model,…
Felix
  • 97
  • 4
3
votes
3 answers

Am I looking at GIT branches in GIT clients wrong?

When I work with GIT branches my "mental model" of any given branch is that it is a path which breaks out from the branch which I base that branch on. Let's assume I do the following : git checkout develop git checkout -b feature/1 touch…
sbrattla
  • 5,274
  • 3
  • 39
  • 63