Top "Branch" questions

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

Set up git to pull and push all branches

I'd like to push and pull all the branches by default, including the newly created ones. Is there a setting …

git version-control branch push
Switch to another branch without changing the workspace files

I cloned a git repository from GitHub, made some changes and some commits; I made quite a lot and all …

git branch git-branch
How do you stop tracking a remote branch in Git?

How do you stop tracking a remote branch in Git? I am asking to stop tracking because in my concrete …

git branch git-track
Renaming a branch in GitHub

I just renamed my local branch using git branch -m oldname newname but this only renames the local version of …

git github branch rename
How is a tag different from a branch in Git? Which should I use, here?

I am having some difficulty understanding how to use tags versus branches in git. I just moved the current version …

git version-control branch git-branch git-tag
Using Git, show all commits that are in one branch, but not the other(s)

I have an old branch, which I would like to delete. However, before doing so, I want to check that …

git branch git-branch
Depend on a branch or tag using a git URL in a package.json?

Say I've forked a node module with a bugfix and I want to use my fixed version, on a feature …

git dependencies npm branch git-tag
How to discard all changes made to a branch?

I'm working in a branch (i.e. design) and I've made a number of changes, but I need to discard …

git branch rollback
How to get the changes on a branch in Git

What is the best way to get a log of commits on a branch since the time it was branched …

git branch
How do I see the commit differences between branches in git?

I'm on branch-X and have added a couple more commits on top of it. I want to see all the …

git logging branch git-log