Top "Branch" questions

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

How to find the nearest parent of a Git branch?

Let's say I have the following local repository with a commit tree like this: master --> a \ \ develop c …

git branch
git: Switch branch and ignore any changes without committing

I was working on a git branch and was ready to commit my changes, so I made a commit with …

git branch git-checkout
Git merge errors

I have a git branch called 9-sign-in-out with perfectly working code, and I want to turn it into the master. …

git branch git-merge git-branch
Git: Merge a Remote branch locally

I've pulled all remote branches via git fetch --all. I can see the branch I'd like to merge via git …

git repository branch git-branch
Can I recover a branch after its deletion in Git?

If I run git branch -d XYZ, is there a way to recover the branch? Is there a way to …

git branch git-branch
How to merge remote master to local branch

I have a local branch of a project ("configUpdate") that I've forked from somebody else's project and I've done a …

git branch pull
How to commit my current changes to a different branch in Git

Sometimes it happens that I make some changes in my working directory, and I realize that these changes should be …

git branch commit
How can I copy the content of a branch to a new local branch?

I have worked on a local branch and also pushed the changes to remote. I want to revert the changes …

git branch
How to download a branch with git?

I have a project hosted on GitHub. I created a branch on one computer, then pushed my changes to GitHub …

git branch
When does Git refresh the list of remote branches?

Using git branch --all shows all remote and local branches. When does Git refresh this list? On pull/push? And …

git github branch remote-branch