tagged [branch]

What is the difference between origin and upstream on GitHub?

What is the difference between origin and upstream on GitHub? What is the difference between `origin` and `upstream` on [GitHub](http://en.wikipedia.org/wiki/GitHub)? When a `git branch -a` command is...

3 Jul at 22:46

Branching Strategies

Branching Strategies The company I work for is starting to have issues with their current branching model and I was wondering what different kinds of branching strategies the community has been expose...

Move the most recent commit(s) to a new branch with Git

Move the most recent commit(s) to a new branch with Git How do I move my recent commits on master to a new branch, and reset master to before those commits were made? e.g. From this: To this:

Create Git branch with current changes

Create Git branch with current changes I started working on my branch thinking that my task would be easy. After a while I realized it would take more work and I want to do all this work in a new bran...

11 Apr at 11:40

How do I create a new Git branch from an old commit?

How do I create a new Git branch from an old commit? > [Branch from a previous commit using Git](http://stackoverflow.com/questions/2816715/branch-from-a-previous-commit-using-git) I have a Git bran...

24 Jan at 22:18

How do I commit only some files?

How do I commit only some files? I have two projects. One is the "official" project and the second is a light modification (some files added). I created new branch and I put new files to them. But in ...

5 Apr at 19:43

Update Git branches from master

Update Git branches from master I have four branches (master, b1, b2, and b3). After I worked on b1-b3, I realized I have something to change on branch master that should be in all other branches. I c...

28 Dec at 23:48

Find out which remote branch a local branch is tracking

Find out which remote branch a local branch is tracking > [How can I see which Git branches are tracking which remote / upstream branch?](https://stackoverflow.com/questions/4950725) How can I find ...

16 Mar at 00:55

svn : how to create a branch from certain revision of trunk

svn : how to create a branch from certain revision of trunk The following action will only create a branch from the head revision of the trunk. How do I create a branch from a specific revision? Thank...

30 Mar at 02:41

How do I push a new local branch to a remote Git repository and track it too?

How do I push a new local branch to a remote Git repository and track it too? How do I: 1. Create a local branch from another branch (via git branch or git checkout -b). 2. Push the local branch to th...

How do I push a local Git branch to master branch in the remote?

How do I push a local Git branch to master branch in the remote? I have a branch called develop in my local repo, and I want to make sure that when I push it to origin it's merged with the origin/mast...

26 Feb at 12:53

How to checkout a remote branch in Git?

How to checkout a remote branch in Git? Someone pushed a "new feature" branch to the shared repo: Now, I would like to create a copy of this branch on my local machine in order to test the new feature...

16 Jan at 18:39

How do I merge my local uncommitted changes into another Git branch?

How do I merge my local uncommitted changes into another Git branch? How can I do the following in Git? My current branch is branch1 and I have made some local changes. However, I now realize that I a...

11 Apr at 00:41

Git checkout second remote branch

Git checkout second remote branch I run: but for some reason, running 'git status' shows "not currently on any branch". Running: and then `git status`, says that I'm now on branch master. Now I want t...

27 Feb at 09:47

Move existing, uncommitted work to a new branch in Git

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 on its own branch. How do I move the existing u...

9 Oct at 05:1

What is trunk, branch and tag in Subversion?

What is trunk, branch and tag in Subversion? > [What do “branch”, “tag” and “trunk” really mean?](https://stackoverflow.com/questions/16142/what-do-branch-tag-and-trunk-really-mean) What is a trunk,...

23 May at 12:17

Prevent pushing to master on GitHub?

Prevent pushing to master on GitHub? GitHub allows you to configure your repository so that [users can't force push to master](https://github.com/blog/2051-protected-branches-and-required-status-check...

Finding a branch point with Git?

Finding a branch point with Git? I have a repository with branches master and A and lots of merge activity between the two. How can I find the commit in my repository when branch A was created based o...

5 Dec at 16:16

Get git branch name in Jenkins Pipeline/Jenkinsfile

Get git branch name in Jenkins Pipeline/Jenkinsfile I've create a jenkins pipeline and it is pulling the pipeline script from scm. I set the branch specifier to '`all`', so it builds on any change to ...

23 Feb at 01:24

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

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 committed in a branch di...

4 Dec at 13:5

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

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 differences between MASTER and the branch that I a...

4 Nov at 16:46

Git: Cannot see new remote branch

Git: Cannot see new remote branch A colleague pushed a new remote branch to origin/dev/homepage and I cannot see it when I run: I still see preexisting remote branches. I assume this is because my loc...

6 Oct at 19:6

What are the differences between git branch, fork, fetch, merge, rebase and clone?

What are the differences between git branch, fork, fetch, merge, rebase and clone? I want to understand the difference between a branch, a fork and a clone in Git? Similarly, what does it mean when I ...

25 Apr at 15:17

What is the equivalent of branch reset operator ("?|") found in php(pcre) in C#?

What is the equivalent of branch reset operator ("?|") found in php(pcre) in C#? The following regular expression will match "Saturday" or "Sunday" : `(?:(Sat)ur|(Sun))day` But in one case backreferen...

24 Jan at 23:45

How do I rename a local Git branch?

How do I rename a local Git branch? How do I rename a local branch which has not yet been pushed to a remote repository? Related: - [Rename master branch for both local and remote Git repositories](ht...

25 Jul at 03:51