Re: howto to run git without a master branch
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Mar 10, 2014, 09:30 UTC
- Message-ID
- <874n36h04f.fsf@igel.home>
- In-Reply-To
- <531CE837.1080504@gmail.com>
Ilya Bobyr <ilya.bobyr@gmail.com> writes:
> There is a "git remote set-head" to manipulate HEAD in a remote repository.
This is misleading. The command does nothing on the remote side, it only changes the refs/remote namespace in your repository. The purpose is to change what branch the ref remote/<name> resolves to, ie. without explicit branch name.
(The only command that manipulates the remote repository is git push, and the plumbing beneath that. To change HEAD in a remote repository you need filesystem access to it.)
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."