From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id 93CC5385734A for ; Tue, 25 Oct 2022 13:09:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 93CC5385734A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x62e.google.com with SMTP id d26so12248210eje.10 for ; Tue, 25 Oct 2022 06:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uP+l+mNTh5meRFRJ55nLUoh/pUOmOYQuK8ikefAn8BU=; b=Bxawk2KjOKLlc53NflOlVQRsiSd+BWB83sXcQKioGMq+gGOoYJacovcr/BhjF/xpRE MRLGJpcAy7GmdoUIdJwxkYem0FA3D7685IO1UNNNoFbMEJWv/h3W9V1V4xEfP7qNpdOS 7DppgizraohT7oWrtC6rjguIC+8ceXTShUnJfSw+PcG+Wuchh8KJ57CkhwK5+MyHmetG LU1qrJkhkspJYuWhivC4tXnkT5nVcaJQQ4Ljhf6l/4KVnV4X4RjCUI8pzO9IOdFgzCX2 WOShXa/QurS2ld/7uH7bMo7s9970mnAWcrcfVYei73G373K7N+9lp0aJF+6ljwQbjr5z 1xug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uP+l+mNTh5meRFRJ55nLUoh/pUOmOYQuK8ikefAn8BU=; b=FmEogFfMaLvt0CivreM88dg4NaSpiNK23lhmZBWL54z7FK0WTA7oYm9gPkgvhYJYo+ ielBHmrI9HXwnKBdh1DrCgSK0SD3aZ3SuuGARhf6yuZ04Z7upCRUtBC9ui4Wjdt5Ep77 pld5Fxq4/kVuHHuMy7B1d0yY6qhLzGglFrpuX/p6tsdmMeYsaJ+eu5QcYotlG77NsIgG NE5XviAnhUaFG71MO7F+8blEDhC2XfXLx0MRZZWOyJyVew/wB7jc5Un1j5RvLwQA0kni GrtdYQTYh9HcZyKr81J9VAiUf4tWSu7AbH+fjsF80dU6A2Cz5wbTJ7qT3vYClQx4uoi4 2ryA== X-Gm-Message-State: ACrzQf15YOOPXw8aVbHeRGt92b0rSrU2tvIfZrunF9EzYQpOTrD7reW+ 9V1S6q87TBtnblk60rGXlceR7FmNiZK1IXbYVII= X-Google-Smtp-Source: AMsMyM52jnrBnxFHkBxH+a0KMrRSJWGekFyp8gFlVG4FbeNOraXJCO7qVeY3SnJm4lwwcDTC5j1M7EycnMx0HbsAmcQ= X-Received: by 2002:a17:907:763b:b0:7aa:1ae6:900b with SMTP id jy27-20020a170907763b00b007aa1ae6900bmr6748659ejc.416.1666703369257; Tue, 25 Oct 2022 06:09:29 -0700 (PDT) MIME-Version: 1.0 References: <8735bcjdpc.fsf@debian> In-Reply-To: <8735bcjdpc.fsf@debian> From: Jonathan Wakely Date: Tue, 25 Oct 2022 14:09:17 +0100 Message-ID: Subject: Re: 1-800-GIT-HELP (how to delete a user branch?) To: Gaius Mulley Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 25 Oct 2022 at 13:23, Gaius Mulley via Gcc wrote: > > > Just wondering what is the safest way to delete a user branch? > > [I used ./contrib/git-add-user-branch.sh and wanted to start over > (user branch for m2 and gcc12)], When you say start over, do you mean reuse the same branch name for a different branch with unrelated history, but using the same name? If yes, you can just force push the new history to the branch. That's the simplest answer. If you really want to delete the branch, then you just say: git push --dry-run --delete REMOTE BRANCH and if that looks right, remove the --dry-run option. The REMOTE will be something like users/gaius and BRANCH will be something like refs/users/gaius/heads/m2gcc12 depending on how you set up your local user branches.