From: Junio C Hamano Date: Tue, 01 Jan 2013 01:15:03 GMT Subject: Re: [BUG] git fetch --all --tags doesn't fetch remote branches, only tags Message-ID: <7vbod9d7qg.fsf@alter.siamese.dyndns.org> In-Reply-To: <50E2311D.8080707@gmail.com> Dennis Heidsiek writes: > i think there may be a bug in the fetch command: The command > >> $ git fetch --all --tags >> Fetching origin > > doesn’t fetch new commits from origin/master, while i see via the > web browser of my remote repository that they exist. The "--all" option asks to fetch from all remotes, and "--tags" option asks to disable the configured fetch refspecs and instead grab only the tags. It appears that what you observed is exactly what should happen and in line with the documentation: $ git help fetch | sed -ne '/^ .*-t.*--tags/,/^$/p' -t, --tags This is a short-hand for giving "refs/tags/:refs/tags/" refspec from the command line, to ask all tags to be fetched and stored locally. Because this acts as an explicit refspec, the default refspecs (configured with the remote.$name.fetch variable) are overridden and not used.