Re: git-remote add: --no-tags/--tags which one is the default option
- From
Kevin Daudt <me@ikke.info>
- Date
- Mar 3, 2015, 22:09 UTC
- Message-ID
- <20150303220918.GB17528@vps892.directvps.nl>
- In-Reply-To
- <54F431E8.3050009@gmail.com>
On Mon, Mar 02, 2015 at 10:48:24AM +0100, Francis Moreau wrote:
Show 7 quoted lines
> Hi, > > git remote add has --no-tags/--tags option, but I can't find in the man > page which one is the default. > > Could anybody tell me the default option ? >
Neither is default. This option has three states, set, unset and default:
- unset (--no-tags) doesn't fetch any tags at all - default (no option passed) will fetch any tags that are reachable from the refs that are being fetch - set (--tags) will fetch all tags, even if they aren't reachable.
These options can also be set with the remote.<name>.tagopt config option, which takes values [--tags|--no-tags].
Kevin