git-fetch

Having a hard time understanding git-fetch

Hi, I am having a hard time understanding the nuances of git-fetch. I understand that doing a fetch, fetches the remote refs into a local tracking branch. I have a few questions though: Can it be possible that a local tracking branch does not exist? If so, then will it be created automatically? What will happen if I do a fetch and sp...

Why include `master` in the command `git fetch upstream master`?

In the section Pulling in upstream changes on help.github's Forking a project it states: Some time has passed, the upstream repo has changed and you want to update your fork before you submit a new patch. There are two ways to do this: $ git fetch upstream master $ git merge upstream/master Why are they including master in the f...

How Do I 'git fetch' and 'git merge' from a Remote Tracking Branch (like 'git pull')

I have set up some remote tracking branches in git, but I never seem to be able to merge them into the local branch once I have updated them with 'git fetch'. For example, suppose I have remote branch called 'an-other-branch'. I set that up locally as a tracking branch using git branch --track an-other-branch origin/an-other-branch S...

How do I force fetching of tags if I have the --no-tags option set

Whenever I run git fetch it fetches all the tags from origin. In a project with lots of tags, this can get quite bothersome. So I ran git config remote.origin.tagopt --no-tags so fetching will no-longer fetch tags. However, there are some times when I do want to fetch tags, or a single tag. Does anyone know how to do this? (besides remo...

Git: Get the HEAD of a repository with the .git directory

Possible Duplicate: How to do a git export (like svn export) I'm looking for a single command that effectively does the following: git clone git://github.com/rails/rails.git --depth=1 rm -rf rails/.git Is there a command that does this? ...

Git progress watch while pulling / fetching

Here is my problem: When I'm doing pull/fetch of some big repository i want to show progress somewhere else than in console (for example on website) I know that in git 1.7.1.1 there is option --progress but I can't use this version and must stay with 1.6.0.4 does anybody have idea how to watch git fetch/pull progress (for example how t...

Can "git fetch" be told not to use "git upload-pack" for local repositories?

When using git fetch to fetch refs from one (very large) repository to another one on the local machine, git upload-pack takes a very long time to create pack files. In the local case there's not such a need to minimize the amount of data transported, and I don't care about disk space lost by losing delta compression, so ideally I'd pre...

git fetch with path instead of remote

I understand the idea of running git fetch <remote>, because the remote branches are then available with git checkout <remote>/<branch>. But how does it work if I just run git fetch path/to/other/repo How can I checkout the corresponding branches? Note that the operation runs silently (even with --verbose), and that no new branch is ...

GIT pull/fetch from specific tag

Is there a way to pull/fetch code from a specific tag in a repo. Am aware that after clone, i can checkout to the tag but is it possible to specify a tag during a pull? In ClearCase i can rebase or deliver a specific baseline of code, is there a way where i can use git tags similarly to pull/push code upto a specified tag? ...