Top "Branch" questions

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

How do I rename my Git 'master' branch to 'release'?

We would like to enforce a new policy for our projects that the master branch now be called the release …

git version-control branch git-branch
Pull all commits from a branch, push specified commits to another

I have the following branches: master production and the following remote branches: origin/master origin/production I have a script …

git branch
Push branches to Git

I have a local repository I'm working on and its remote is hosted on GitHub. I recently created a branch …

git branch github git-push git-pull
Track all remote git branches as local branches

Tracking a single remote branch as a local branch is straightforward enough. $ git checkout --track -b ${branch_name} origin/${branch_…

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

When you run git pull on the master branch, it typically pulls from origin/master. I am in a different …

git branch git-branch
How do I create a new GitHub repo from a branch in an existing repo?

I have master and new-project branches. And now I'd like to create a brand new repo with its master based …

git github branch
Which characters are illegal within a branch name?

Which characters are illegal within a branch name?

git branch naming
Can I make fast forwarding be off by default in git?

I can't really ever think of a time when I would use git merge rather than git rebase and not …

git merge branch rebase fast-forward
git working on two branches simultaneously

I have a project with many branches. I would like to work on several branches simultaneously without switching back and …

git branch
Listing and deleting Git commits that are under no branch (dangling?)

I've got a Git repository with plenty of commits that are under no particular branch, I can git show them, …

git branch git-dangling