git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Ilya Bobyr <ilya.bobyr@gmail.com>
Cc: "Carlos Pereira" <jose.carlos.pereira@ist.utl.pt>,
	"Torsten Bögershausen" <tboegi@web.de>,
	git@vger.kernel.org
Subject: Re: howto to run git without a master branch
Date: Mon, 10 Mar 2014 10:30:08 +0100	[thread overview]
Message-ID: <874n36h04f.fsf@igel.home> (raw)
In-Reply-To: <531CE837.1080504@gmail.com> (Ilya Bobyr's message of "Sun, 09 Mar 2014 15:16:23 -0700")

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."

      parent reply	other threads:[~2014-03-10  9:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-08 21:37 howto to run git without a master branch Carlos Pereira
2014-03-09  7:46 ` Torsten Bögershausen
2014-03-09 19:54   ` Carlos Pereira
2014-03-09 20:00     ` Kevin
2014-03-09 22:16     ` Ilya Bobyr
2014-03-09 23:58       ` Carlos Pereira
2014-03-10  9:30       ` Andreas Schwab [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874n36h04f.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=git@vger.kernel.org \
    --cc=ilya.bobyr@gmail.com \
    --cc=jose.carlos.pereira@ist.utl.pt \
    --cc=tboegi@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).