Skip to main content
2 of 2
added link to implementation answer from Animuson
rene
  • 42.3k
  • 55
  • 610
  • 777

The system checks for similar titles and their postscore and based on that it gives you that warning

The pattern that I think is suspicious is:

Is it possible ..... If so, how?

The answer to questions like that are mostly yes, [link to doc]

Instead you could rephrase to

How do I track a single file in a Git worktree that is untracked in the main tree?

and in the body of your question you explain what your git tree look like and which git magic commands you tried (and why you tried them) and what their result was.

Do know that based on your title alone I found Per-worktree local exclusion which might be related to your issue or maybe a common solution that didn't work for you. Make sure to include such references and how they failed in your context. It helps the answerers to focus on alternatives they know off.

The warnings you get are there to prevent avoidable mishaps. It is good to pay attention to them, as you did, and try to find out what you can improve. There is a chance these warnings are false positives but you better be safe then sorry.

rene
  • 42.3k
  • 55
  • 610
  • 777