79149410

Date: 2024-11-01 21:02:52
Score: 1.5
Natty:
Report link

What you are looking for is sparse checkout. git-scm.com/docs/git-sparse-checkouteftshift0

git sparse-checkout set <unwanted-folder>

This resolved my issues since it stops tracking unwanted folders on my checked-out branch but kept them on remote product branch.

git sparse-checkout disable

to disable this configuration on my local environment

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ErrorAndTrial