65 comments
Also `~/.gitignore` works as a global gitignore. I usually stick something like `katie*` in there so I can copy some `script.sh` to `katie_script.sh` and then I can make changes that I don't want to commit.
Quick edit: I'm not sure `~/.gitignore` works out of the box.. looks like I stuck that in my `~/.gitconfig` for excludesfile
.git/exclude
--assume-unchanged
--no-update-index
.And fwiw, I think global/home-dir .gitignore is bad, for everything except of OS-level spam like .DS-Store
I have dependency_tree globally excluded because it is my unique naming convention. Actually it might just be my unique approach because other people don't seem to mind having 1000 overrides for libraries they don't use.
Now that you mention it, I should add a link to those docs in the article. Thanks!
"Do the reading b/c you would be amazed how many people don't do the reading"
Reading documentation is a superpower
For example, with direnv, the `.envrc` in my projects usually has
source_env_if_exists .envrc.local
And the repo also ships with a `.envrc.local.example` file.> Some configs don't allow extending
Pick a directory for them and ignore the directory. Other team members who want to keep their own notes can use that directory as well.
Read the full thread on Hacker News →
Related stories
- Lobsters · 13 points · 6 months ago
- Hacker News · 3 points · 9 days ago
- DEV Community · 6 points · 6 days ago
- Hacker News · 7 points · 3 days ago
- Hacker News · 357 points · 6 days ago
- Hacker News · 1 points · 10 days ago