I have an old branch, which I would like to delete. However, before doing so, I want to check that all commits made to this branch were at some point merged into some other branch. Thus, I’d like to see all commits made to my current branch which have not been applied to any other […]
Coming from mercurial, I use branches to organize features. Naturally, I want to see this work-flow in my history as well. I started my new project using git and finished my first feature. When merging the feature, I realized git uses fast-forward, i.e. it applies my changes directly to the master branch if possible and […]
I know how to make a new branch that tracks remote branches, but how do I make an existing branch track a remote branch? I know I can just edit the .git/config file, but it seems there should be an easier way.
How do I set a Git remote’s HEAD reference to point to something besides “master”? My project has a policy not to use a “master” branch (all branches are to have meaningful names). Furthermore, the canonical master repository is only accessible via ssh://, with no shell access (like GitHub or Unfuddle). My problem is that […]
Does anybody know the difference between these two commands to switch and track a remote branch? git checkout -b branch origin/branch git checkout –track origin/branch I think both keep track of the remote branch so I can push my changes to the branch on origin, right? Is there any practical differences?? Thanks!
I cloned a git repository, which contains about 5 branches. However, when I do git branch I only see one of them: $ git branch * master I know that I can do git branch -a to see all the branches, but how would I pull all the branches locally so when I do git […]
Possible Duplicate: Change the current branch to master in git I have two branches in my git repo: master seotweaks (created originally from master) I created seotweaks with the intention of quickly merging it back into master, however that was 3 months ago and the code in this branch is 13 versions ahead of master, […]
Here is my git workflow. I work from two different computers (A and B) and store a common git remote in dropbox directory. Let’s say I have two branches master and devel. Both are tracking their remote counterparts origin/master and origin/devel. Now while on computer A, I delete branch devel – both local and remote […]
I have a master and a development branch, both pushed to GitHub. I’ve cloned, pulled, and fetched, but I remain unable to get anything other than the master branch back. I’m sure I’m missing something obvious, but I have read the manual and I’m getting no joy at all.
This question already has an answer here: How to clone a single branch in git? 12 answers