Live data from Hacker News

ToolGit: A collection of scripts that extend Git with various sub-commands

github.com

1–10 of 59 posts

Re: ToolGit: A collection of scripts that extend Git with various sub-commands

#2
https://gist.github.com/romainl/a3ddb1d08764b93183260f8cdf0f...

This script in your path means that after you say pull code and have merge conflicts, "git jump" will open vim with the quickfix list populated with the locations of the conflicts.

Re: ToolGit: A collection of scripts that extend Git with various sub-commands

#5

https://gist.github.com/romainl/a3ddb1d08764b93183260f8cdf0f... This script in your path means that after you say pull code and have merge conflicts, "git jump" will open vim with the quickfix list populated with the locations of the conflicts.

> NOTE: The original git-jump now supports the flag --stdout, which makes this hack redundant, but I will keep it for posterity

This update is from May 2023

Re: ToolGit: A collection of scripts that extend Git with various sub-commands

#7
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.

Re: ToolGit: A collection of scripts that extend Git with various sub-commands

#9
post #7

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.

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

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

Re: ToolGit: A collection of scripts that extend Git with various sub-commands

#10
post #4

Most of these would be better as aliases in your global hit config file. Several are 30+ lines of boilerplate to run a git one-liner.

This was my first thought as well. This might be an indictment of how obscure/confusing some git invocations are...hence the alias to human readable names.

It is kind of interesting that there is much interest, work and maintenance on these over-complications...There seems to be a related repo - git-extras - that does the same as this repo, and has 17k stars.

Post reply on HN