79381682

Date: 2025-01-23 15:43:21
Score: 1
Natty:
Report link

I'm assuming you don't care so much about the read-only part rather than that HEAD stays where it is and you may work on your repository even if your working tree is dirty. In that case you may be looking for git worktree.

It'll create a separate working tree for one repository attached to a separate HEAD. It's even more than read-only: As the HEAD is different, you may even commit to it without any conflicts with your default working tree.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: J A