Top "Branch" questions

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

Git fetch remote branch

My colleague and I are working on the same repository. We've branched it into two branches, each technically for different …

git branch git-branch git-fetch
How to remove local (untracked) files from the current Git working tree

How do you delete untracked local files from your current working tree?

git branch git-branch
How do you create a remote Git branch?

I created a local branch which I want to 'push' upstream. There is a similar question here on Stack Overflow …

git branch git-branch
How to get the current branch name in Git?

I'm from a Subversion background and, when I had a branch, I knew what I was working on with "These …

git branch git-branch
How to fetch all Git branches

I cloned a Git repository, which contains about five branches. However, when I do git branch I only see one …

git branch git-branch
Make an existing Git branch track a remote branch?

I know how to make a new branch that tracks remote branches, but how do I make an existing branch …

git branch git-branch
Git pull a certain branch from GitHub

I have a project with multiple branches. I've been pushing them to GitHub, and now that someone else is working …

git merge branch github pull
git pull from master into the development branch

I have a branch called dmgr2 (development) and I want to pull from the master branch (live site) and incorporate …

git branch pull
master branch and 'origin/master' have diverged, how to 'undiverge' branches'?

Somehow my master and my origin/master branch have diverged. I actually don't want them to diverge. How can I …

git branch
Showing which files have changed between two revisions

I want to merge two branches that have been separated for a while and wanted to know which files have …

git branch git-branch git-diff