From owner-freebsd-git@freebsd.org Thu Jan 28 11:34:24 2021 Return-Path: Delivered-To: freebsd-git@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CCD0E521FB3 for ; Thu, 28 Jan 2021 11:34:24 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DRJKD19rMz3FC7 for ; Thu, 28 Jan 2021 11:34:23 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: by mail-oi1-x22c.google.com with SMTP id h6so5661271oie.5 for ; Thu, 28 Jan 2021 03:34:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=ZPTGjaugtAVYjAuGI/DR4W9A5jaxwqqbrIFA2z2r6cw=; b=pd8n44pAzrBKWcHPVOTde/qEBQbdh28Sg4B9f2R6ZRuJI74GXwMJssAsLgWXZc7OMu z3HfjMzb91/yc00WwGU4niLb9WNZuM1mFyTMacXvAkMs11p963IYE6CYYJ26XJ0lFI97 l2z6NUBrtsQrD5V0YX7z239/gQ35+chKhfThKqq2jwSp5e6OgtCFzsZghR7YMR/iv6uF PQUFx4vqwQGVw2HRg1d/nBsrSrQ8SXkQn/zZ65UdKVUw/X9JjU2pRuQByPAXeFHtcAN1 1P8tNTjKbBXxq7GLg6pB5eodA+7q3Ja9Ue5+P+fYgcp3DWKevnChpRo3QplAvu0xNxsY KnEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=ZPTGjaugtAVYjAuGI/DR4W9A5jaxwqqbrIFA2z2r6cw=; b=oOKBZ5zqwK7MDfqMKAgHEb2UDgOMRu8qR+Kda3YWjhsIosLssI6VfGpgXktZBCQL7M mYpYaQw3UfQS/cihOHICHVq+tagimo9A8S9Ur1Tyg0EuQXwVsIvhcWUyvECK0B5iaD6j aZASRQkE4wiKflBbKVru8VsQUtP831wqR8RTjNgd0oNIhCmYwWoHMpN2vYvrQKJ5M6/T kCfNw0m+iuoVexpLAvcx7StMngqWM4y4o3uWqWc6KjSKcnQ2IkPxLCe6odVGJAIWxQJx WpXDj9frnPSxzxn24/AIS7ZRxan89yDFwGxtkMwip+CWRhYAZPdY5EMqSgMXHNwlfnE/ cyVA== X-Gm-Message-State: AOAM531XuShLrE5nh8ZlqQIQrEJty6qodpKstiKeZH0NxrVIqnZ+nNoI vjkagxh0oczgFYXu6h4tANUIb/ERoTUVvA== X-Google-Smtp-Source: ABdhPJw8wWQEGFCfiuGJMhb6nwxPpdfPjfTx3J5PcuZAM00SspBEgvkrOpc6UTpC0mM1aAsGcDPXxw== X-Received: by 2002:aca:5342:: with SMTP id h63mr6130081oib.42.1611833662455; Thu, 28 Jan 2021 03:34:22 -0800 (PST) Received: from [192.168.1.69] (172-125-77-130.lightspeed.sntcca.sbcglobal.net. [172.125.77.130]) by smtp.gmail.com with ESMTPSA id d127sm997045oob.14.2021.01.28.03.34.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jan 2021 03:34:21 -0800 (PST) From: Bakul Shah Mime-Version: 1.0 (1.0) Subject: Re: git setup/usage question Date: Thu, 28 Jan 2021 03:34:19 -0800 Message-Id: <7E81EF70-97EC-4B10-83CE-4D25E443F09D@iitbombay.org> References: <20210128114522.2f2beadd@zeta.dino.sk> Cc: Mark Millard , freebsd-git@freebsd.org In-Reply-To: <20210128114522.2f2beadd@zeta.dino.sk> To: Milan Obuch X-Mailer: iPad Mail (18D52) X-Rspamd-Queue-Id: 4DRJKD19rMz3FC7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iitbombay-org.20150623.gappssmtp.com header.s=20150623 header.b=pd8n44pA; dmarc=none; spf=pass (mx1.freebsd.org: domain of bakul@iitbombay.org designates 2607:f8b0:4864:20::22c as permitted sender) smtp.mailfrom=bakul@iitbombay.org X-Spamd-Result: default: False [-2.80 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[iitbombay-org.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::22c:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[iitbombay-org.20150623.gappssmtp.com:s=20150623]; FREEFALL_USER(0.00)[bakul]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-git@freebsd.org]; DMARC_NA(0.00)[iitbombay.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::22c:from:127.0.2.255]; MANY_INVISIBLE_PARTS(0.20)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::22c:from]; FREEMAIL_CC(0.00)[yahoo.com,freebsd.org]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-git] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2021 11:34:24 -0000 You might want to read this as to why bare repos are a problem with worktree= s & some solutions. https://stackoverflow.com/questions/54367011/git-bare-repositories-worktrees= -and-tracking-branches I wish I had read this earlier. Torek=E2=80=99s solution is quite clever. Ba= sically git clone $url cd $new-repo git checkout $(git commit-tree $(git hash-object -t tree /dev/null) < /dev/n= ull) This makes the new repo completely empty but you can add multiple worktrees,= no more than one per branch, for any local work.