Date: Thu, 28 Jan 2021 03:34:19 -0800 From: Bakul Shah <bakul@iitbombay.org> To: Milan Obuch <freebsd-git@dino.sk> Cc: Mark Millard <marklmi@yahoo.com>, freebsd-git@freebsd.org Subject: Re: git setup/usage question Message-ID: <7E81EF70-97EC-4B10-83CE-4D25E443F09D@iitbombay.org> In-Reply-To: <20210128114522.2f2beadd@zeta.dino.sk> References: <20210128114522.2f2beadd@zeta.dino.sk>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7E81EF70-97EC-4B10-83CE-4D25E443F09D>