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 to fetch GitHub branch names using GraphQL

Using GitHub GraphQL API (v.4) I would like to get all the branch names existing on a given repository. My attempt { repository(name: "my-repository", owner: "my-account") { ... on Ref { name } } } returns error: {'data': None,…
Javide
  • 2,477
  • 5
  • 45
  • 61
3
votes
3 answers

How to retrieve branch information by the API from a SonarQube project?

I'm using SonarQube branch plugin (1.0 (build 507)) and want to retrieve information from branches. My SonarQube version is 6.7. The SonarQube project (PC_civil-affairs) has three branches, master (main), develop, feature_branch. These are all…
dj van kessel
  • 43
  • 2
  • 4
3
votes
1 answer

Create and merge a git branch to an epic branch

I am working on a project, for example, SO/bubbleSort and there I need to create an epic branch called feature/version-1 so from this epic branch there are few developers do the development, so for that, they need to create a separate branch from…
Hariprasath
  • 539
  • 1
  • 9
  • 21
3
votes
6 answers

How to handle branching when you're planning on doing a rewrite in the future?

My development team is moving to branching soon - we've been cursed with SourceSafe and we're moving to Team Foundation Server - and I'm curious about something. Traditionally when we do major revisions to our product, to the point where not even…
Tom Kidd
  • 12,830
  • 19
  • 89
  • 128
3
votes
1 answer

How to track only specific files on a git branch automatically

I have a master branch and a few working branches which each should implement a specific feature and then be merged into master and deleted. The problem I have is that the working branches track all the files that are also on master, and whenever…
stimulate
  • 1,199
  • 1
  • 11
  • 30
3
votes
2 answers

How to create git branch from existing project

I have a project not by git and want to merge it with other one under git. Wat will be steps to do this? git init git remote add origin git@bitbucket.org:projectname/reponame.git git pull origin master And then git wants me to commit anything to…
Pavel Zorin
  • 331
  • 6
  • 17
3
votes
2 answers

Why do we delete branch after merge in git?

I have experience with Mercurial in which we close branch after merge. However, we don't delete the source branch so that if an issue is found, we can track all the merges in the master branch to identify grossly (the branch) where the issue comes…
AlexTP
  • 213
  • 1
  • 3
  • 6
3
votes
1 answer

Management of remote branches in Git with GitFlow

I have a question about the management of branches in GIT. I'm following GitFlow. I know its operation in terms of branch structure, no problem there, but I don't know how to manage the synchronization with remote correctly. For example: I make a…
lmfresneda
  • 449
  • 7
  • 18
3
votes
1 answer

How to git-diff a single, staged file with same file in other branch

If I understand correctly, if I do git diff master devel ./my_file I get the diff between the two HEADs of the branches. However, if I have made changes in, say, master and staged them, I thought I could get the diff between the unstaged file and…
loris
  • 450
  • 8
  • 20
3
votes
1 answer

Can GIT track a file only in one branch but not on other?

I'm using GitFlow as git workflow. And I program for electronic microcontrollers. While I'm on the development branch I don't need the compiled HEX file to be tracked or committed, I just need the code. But when I'm on the release or master branch,…
Martin
  • 45
  • 1
  • 5
3
votes
2 answers

TFS - Is it possible to impersonate someone to check-in changes?

I'm responsible for merging and commiting changes to the test Branch, but by doing that every check-in is marked as me as the author. So until now i'm writting the author name in the comments. But it's ugly. Is it possible to impersonate someone…
Conrad Clark
  • 4,533
  • 5
  • 45
  • 70
3
votes
1 answer

How can only a specific branch be implicitly pulled in Mercurial

Running hg pull implicitly retrieves everything on the default remote repo, while hg pull -b Branch-0 explicitly pulls changes only from branch Branch-0 from default. Is there a way to configure/script mercurial to implicitly pull only say Branch-0…
clausavram
  • 546
  • 8
  • 14
3
votes
2 answers

git add submodule of only a certain branch

Is it possible to only checkout a single branch as a submodule WITHOUT the overhead of the whole repository in my main repositories working directory? (And really only download the files of that branch) I think of having a submodule for a javascript…
Danny Raufeisen
  • 953
  • 8
  • 21
3
votes
1 answer

Automated Builds on Branches for TFS

In TFS, you are able to create automated builds and create branches (well, hopefully. ;) ) I have the following structure: ->Trunk ->Branches -> Branch A If you create an automated build, you are able to create a trigger for the build. In my…
Ray Booysen
  • 28,894
  • 13
  • 84
  • 111
3
votes
1 answer

Move a commit to independent branch from master

I have branched off the wrong branch and I want to move a commit to the master instead of a feature branch. Tried with rebase master from feat2 but I'm getting "Current branch ... is up to date" Basically I want to go from this feat2 …
a1an
  • 3,526
  • 5
  • 37
  • 57