r/ProgrammerHumor • • Oct 05 '26

Meme gitInitEverywhereIncludingMySecrets

Post image
403 Upvotes

14 comments sorted by

43

u/Living-Chemical-6 Oct 05 '26

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

8

u/DanielBobes Oct 06 '26

Stow is tour friend

0

u/0739-41ab-bf9e-c6e6 Oct 06 '26

for /etc, i use etckeeper. for everything else claude became my committer(except secrets). i dont see any reason to use new tool.

30

u/howarewestillhere Oct 05 '26

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 Oct 06 '26

thats why you should sandbox claude. `bwrap` is awesome for this.

1

u/drivingagermanwhip Oct 11 '26

I get "I tried to bypass the sandbox to do this" about 3 times a day. Yeah, sandbox is staying

3

u/NotAskary Oct 06 '26

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

u/Stainlessray Oct 07 '26

... here's what happened clicks stop

4

u/rosuav Oct 06 '26

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 Oct 06 '26

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.

-1

u/rover_G Oct 05 '26

I think you need some help setting up your git repos. Dm me!