tagged [git-branch]

Git: Find the most recent common ancestor of two branches

Git: Find the most recent common ancestor of two branches How to find the most recent common ancestor of two Git branches?

10 Nov at 12:33

Change a branch name in a Git repo

Change a branch name in a Git repo How do I rename an existing branch in a Git repo? I want the current branch to have a new name.

20 Apr at 03:36

How do I clone all remote branches?

How do I clone all remote branches? My `master` and `development` branches are tracked remotely on [GitHub](http://en.wikipedia.org/wiki/GitHub). How do I clone both these branches?

Showing which files have changed between two revisions

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 been modified. Came across this link: [http...

28 Dec at 17:17

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

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 view th...

28 Jul at 09:16

Push commits to another branch

Push commits to another branch Is it possible to commit and push changes from one branch to another. Assume I commited changes in and want to push them to . From , is it valid to do: And then reset BR...

7 Jul at 12:29

Renaming branches remotely in Git

Renaming branches remotely in Git If there is a repository that I only have `git://` access to (and would usually just push+pull), is there a way to rename branches in that repository in the same way ...

23 Mar at 11:31

Git: Merge a Remote branch locally

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 branch -a` as remotes/origin/branchname. Problem is it is not ...

23 Jul at 11:4

How to get just one file from another branch?

How to get just one file from another branch? I have a `master` branch with a file called `app.js`. I made changes to this file on an `experiment` branch. I want to apply only the changes made to `app...

25 Jul at 05:17

Move branch pointer to different commit without checkout

Move branch pointer to different commit without checkout To move the branch pointer of a checked out branch, one can use the `git reset --hard` command. But how to move the branch pointer of a not-che...

13 Jun at 10:48