Top "Branch" questions

A "branch" is a term used in version control systems to represent an independent line of development.

Merge branch with trunk

Using TortoiseSVN, I need to take changes I've done in a branch and then merge them with trunk. I am …

tortoisesvn branch trunk
git push error: src refspec main does not match any on linux

whenever I'm trying to upload my files using git push -u origin main I'm getting error which is as follows …

git github branch git-refspec
What is a "stale" git branch?

A "Stale" git branch is a term I've heard a lot. I know it has something to do with branches …

git branch
Using Git, how could I search for a string across all branches?

Using Git, how could I search within all files in all local branches for a given string? GitHub specific: is …

git search github branch
Delete local Git branches after deleting them on the remote repo

I want to have my local and remote repositories always in sync in terms of branches. After a Pull Request …

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

This is mostly of the nature of a curiosity as I'm trying to get familiar with Git. I have looked …

git branch git-fetch
Mercurial: Can I rename a branch?

We now have a "stiging" branch, where "staging" seems to be a far better semantic fit. What's a good strategy …

mercurial branch dvcs
Git commits are duplicated in the same branch after doing a rebase

I understand the scenario presented in Pro Git about The Perils of Rebasing. The author basically tells you how to …

git branch rebase
SVN branch compare

How do I compare one branch with another? I want to compare a branch with the latest revision in trunk.

svn branch diff branching-and-merging
git shallow clone (clone --depth) misses remote branches

After cloning a remote repository it does not show any remote branch by -a option. What could be the problem? …

git branch shallow-clone