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.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16045 invoked from network); 17 Jul 2021 01:51:04 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 17 Jul 2021 01:51:04 -0000 Received: from MTA-06-3.privateemail.com ([198.54.127.59]) by 1ess; Fri Jul 16 21:13:34 -0400 2021 Received: from mta-06.privateemail.com (localhost [127.0.0.1]) by mta-06.privateemail.com (Postfix) with ESMTP id 29A8A18000B1 for <9front@9front.org>; Fri, 16 Jul 2021 21:13:21 -0400 (EDT) Received: from localhost (unknown [10.20.151.245]) by mta-06.privateemail.com (Postfix) with ESMTPA id 1F8CF18000A9 for <9front@9front.org>; Fri, 16 Jul 2021 21:13:20 -0400 (EDT) Date: Fri, 16 Jul 2021 18:13:11 -0700 From: Anthony Martin To: 9front@9front.org Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: ClamAV using ClamSMTP List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: template-oriented component rich-client manager Subject: [9front] git/push with refs not in refs/heads Reply-To: 9front@9front.org Precedence: bulk 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