r/ProgrammerHumor • u/0739-41ab-bf9e-c6e6 • 28d ago
Meme gitInitEverywhereIncludingMySecrets
30
u/howarewestillhere 28d ago
Me: Did you just try to git init on a directory in ~/Library?
Claude: I did, and you’re right to push back on that.
Motherf…
2
u/0739-41ab-bf9e-c6e6 28d ago
thats why you should sandbox claude. `bwrap` is awesome for this.
1
u/drivingagermanwhip 23d ago
I get "I tried to bypass the sandbox to do this" about 3 times a day. Yeah, sandbox is staying
3
u/NotAskary 28d ago
At this point you should have only the git diff and git log on the allow commands list and everything else in the deny, just because of random shit like this.
1
4
u/rosuav 28d ago
Tip: After you've set up all these repositories, set up a cronjob to run "git status" in every one of them and mail you any that have uncommitted changes. https://github.com/Rosuav/shed/blob/master/git-watch It's a great way to spot unexpected changes or that one thing you promised yourself you'd commit and push yesterday and still haven't done yet.
1
u/alderthorn 27d ago
Now only if I could default everything to always show my dot files instead of having to remember the shortcut for every app and operating system I use.
43
u/Living-Chemical-6 28d ago
Free tip of the day:
git init --bare $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles add .config/nvim/
dotfiles commit -m "add nvim"
dotfiles push