tagged [git-branch]
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...
- Modified
- 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 ...
- Modified
- 16 Mar at 00:55
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...
- Modified
- 25 Jul at 02:3
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...
- Modified
- 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...
- Modified
- 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...
View a file in a different Git branch without changing branches
View a file in a different Git branch without changing branches Is it possible to open a file in a git branch without checking out that branch? How? Essentially I want to be able to open a file in my ...
- Modified
- 14 Feb at 15:28
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...
- Modified
- 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...
- Modified
- 9 Oct at 05:1
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...
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...
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...
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 ...
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...
- Modified
- 25 Jul at 03:51
How to download a branch with git?
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 with: Now I am on a different computer, and I want to downloa...
How can I copy the content of a branch to a new local branch?
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 on that branch and do something else o...
Using the slash character in Git branch name
Using the slash character in Git branch name I'm pretty sure I saw somewhere in a popular Git project the branches had a pattern like "feature/xyz". However when I try to create a branch with the slas...
How to push a single file in a subdirectory to Github (not master)
How to push a single file in a subdirectory to Github (not master) I have changed a single file in a subdirectory of my repository and I want to push just that file to Github. I've made a small chang...
- Modified
- 27 Dec at 01:24
Git: "Not currently on any branch." Is there an easy way to get back on a branch, while keeping the changes?
Git: "Not currently on any branch." Is there an easy way to get back on a branch, while keeping the changes? So I've done some work in the repository and when I'm about to commit I realize that I'm no...
- Modified
- 22 Feb at 16:47
Put current changes in a new Git branch
Put current changes in a new Git branch I've been editing some modules on the master branch but I haven't committed them. I'm now thinking that these changes should really be on an experimental branch...
- Modified
- 1 Dec at 14:38
git: rename local branch failed
git: rename local branch failed I don't know why my attempt of renaming local branch failed. I basically cloned the project, then I also have a submodule within the project, and I downloaded the submo...
How to replace master branch in Git, entirely, from another branch?
How to replace master branch in Git, entirely, from another branch? I have two branches in my Git repository: 1. master 2. seotweaks (created originally from master) I created `seotweaks` with the int...
- Modified
- 19 Aug at 18:8
How can I display the current branch and folder path in terminal?
How can I display the current branch and folder path in terminal? I've been watching some of the Team Treehouse videos and they have a very nice looking terminal when working with Git. For example the...
- Modified
- 27 Jun at 02:20
How do I create a master branch in a bare Git repository?
How do I create a master branch in a bare Git repository? (Folder is created with git-ish files and folders inside) (Okay, so I can't use git status with a bare repo; makes sense I guess) (Nothing, it...
- Modified
- 3 Aug at 10:24
Forking vs. Branching in GitHub
Forking vs. Branching in GitHub I'd like to know more about the advantages and disadvantages of forking a github project vs. creating a branch of a github project. Forking makes my version of the proj...