Hacker News new | ask | show | jobs
by kenmacd 599 days ago
Obligatory mention of https://github.com/tj/git-extras/blob/main/Commands.md for more/similar commands.

Especially useful to me is `git bulk` to apply a command to all the git repos under the directory, and `git ignore "bin/"` to quickly add something to the `.gitignore` file.

2 comments

I like these a lot! It seems like git-extras is pure bash allowing it to work out of the box without any dependencies but I would probably go mad if I had to implement¹ reading/writing git index² in bash.

¹ https://github.com/ahmetsait/toolgit/blob/58713ead5abc060510...

² https://git-scm.com/docs/index-format

> `git bulk` to apply a command to all the git repos under the directory

There is also: gitup . -e "arbitraryShellCommand withArg"