Am Thu, Oct 16, 2025 at 04:49:50PM +0200 schrieb Cayetano Santos:
> Second, using git worktrees, when you work of something different so
> frequently that it is worth to build new .go files once.

To make this precise, as far as I understood:

For instance, to work on kde-team in addition to the master branch, run
   git worktree add -b kde-team kde-team kde-team
to create the subdirectory kde-team and to check out the kde-team branch
into it (I am not sure if there is a version with fewer "kde-team"
typing, everything else I tried did... something else from what I wanted).

In the subdirectory, "git log", "git pull" etc. now refer to this branch
only. The price to pay is that you need to ./bootstrap, ./configure, make
a second time there. And you increase the size by the corresponding .go
files.

To remove the thing, you can do (from one level above):
   git worktree remove --force kde-team
   git branch -D kde-team

Andreas


Reply via email to