Top "Git-branch" questions

git-branch is the Git command that manages branches.

Git merge master into feature branch

Let’s say we have the following situation in Git: A created repository: mkdir GitTest2 cd GitTest2 git init Some …

git git-branch git-merge git-flow feature-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
Create a branch in Git from another branch

I have two branches: master and dev I want to create a "feature branch" from the dev branch. Currently on …

git git-branch git-workflow git-flow
How to clone all remote branches in Git?

I have a master and a development branch, both pushed to GitHub. I've cloned, pulled, and fetched, but I remain …

git git-branch git-clone remote-branch
Move the most recent commit(s) to a new branch with Git

I'd like to move the last several commits I've committed to master to a new branch and take master back …

git git-branch branching-and-merging
Why do I need to do `--set-upstream` all the time?

I create a new branch in Git: git branch my_branch Push it: git push origin my_branch Now say …

git 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
Update Git branches from master

I'm new to Git, and now I'm in this situation: I have four branches (master, b1, b2, and b3). After …

git git-branch
Branch from a previous commit using Git

If I have n commits, how can I branch from the n-3 commit? I can see the hash of every …

git branch git-branch
Move existing, uncommitted work to a new branch in Git

I started some work on a new feature and after coding for a bit, I decided this feature should be …

git git-branch git-stash git-reset