From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 22764 invoked from network); 17 Jul 2021 02:52:32 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 17 Jul 2021 02:52:32 -0000 Received: from wopr.sciops.net ([216.126.196.60]) by 1ess; Fri Jul 16 22:11:21 -0400 2021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sciops.net; s=20210706; t=1626487873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dosrVrlYrIPO8KLpQfqozGfQ7COcAPc+VZirw0c75PQ=; b=cU7F1yM39mAIK3hNgE5V/G24jA5DL//49pmqDuxMqN2j0Pe4oZ3L1rYSu2fcT5XSV7vZIm wlCh52M3lzJ/96pRsWg+yIuimCR2hS+/Lahk69XpAsRGsKW0BLcJ8vq5CIq8aNofvhQt4Z 5+5J6xbHBO51oWID+Q9x/Z08YoJtfUo= Received: from localhost (wopr.sciops.net [local]) by wopr.sciops.net (OpenSMTPD) with ESMTPA id 3f28431c for <9front@9front.org>; Fri, 16 Jul 2021 19:11:13 -0700 (PDT) Date: Fri, 16 Jul 2021 19:11:13 -0700 From: Kurt H Maier To: 9front@9front.org Message-ID: Mail-Followup-To: 9front@9front.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: grid HTML over TOR strategy extension-aware generator Subject: Re: [9front] git/push with refs not in refs/heads Reply-To: 9front@9front.org Precedence: bulk On Fri, Jul 16, 2021 at 06:13:11PM -0700, Anthony Martin wrote: > Is there interest in allowing git/push to send an > arbitrary ref to a remote repository? Right now > the ref has to be a branch in refs/heads. > > My usual way of working with git on Unix is to have > a canonical origin that I fetch from and a single > local branch that I commit to and rebase onto the > origin before pushing. > > Sometimes I want to push the current origin branch > to a mirror without involving any of my local refs, > something like: > > git push mirror origin/master:master > > where the local refs are > > refs/heads/master > refs/remotes/mirror/master > refs/remotes/origin/HEAD > refs/remotes/origin/master > > the remote refs on mirror are > > HEAD > refs/heads/master > > and my own master has diverged from origin/master. > > Please advise. > > Thanks, > Anthony jesus christ