6 ms·
I use the ever living hell out of .git/info/exclude. Works great for scripts/Makefiles I only want locally and collaborators wouldn’t care about or be able to u
by bryancoxwell 3mo ago
I use the ever living hell out of .git/info/exclude. Works great for scripts/Makefiles I only want locally and collaborators wouldn’t care about or be able to use.
- RSHEPP 3mo agoInterested in examples of the types of scripts others collaborators wouldn't be able to use? Like scripts for PR workflows?
- junon 3mo agoUsually when I'm working in one part of the codebase and I have sample data or something at a specific path on my local machine and Im testing the same thing over and over again will I make a Makefile or something and info/exclude it to help me keep focused. That's one way I use it.
- bryancoxwell 3mo agoYeah this is pretty much it.
- tomjakubowski 3mo agoI use git worktrees pretty heavily in my own workflows (I worked like an AI agent before AI agents made worktrees cool). I like to track my ephemera/utility scripts in git, so what I do is keep a private ephemera repo for those, and then use `git worktree add` from the collaborative repo to check out the branch I'm working on there into a subdirectory of my ephemera repo. git-home/ company-project/ <-- git repo with main checked out ephemera/ <-- my private repo my-data-script.py work/ <-- gitignored company-project-feature-X/ <-- worktree on feature-X branch company-project-feature-Y/ <-- worktree on feature-Y branch This way, too, I can easily use the same ephemera scripts across multiple branches, or even multiple repos, concurrently.
- digikata 3mo agoFor quite a while, I've have had a shell fcn that will take all the untracked files listed in a git status, and push them to .git/info/exclude. Generally applied after an add+commit of everything I do want to go generally into the repo.