Tag: source control
-
In my first few weeks at my new employer, my code contributions have added 218 lines of code, deleted 2,663. Only one of my PRs has resulted in a net increase in the size of their codebases (by two lines).
Alt
GitHub change summary showing +218 lines added, -2,663 lines removed.
I need to pick up the pace if I'm going to reach the ultimate goal of deleting ALL of the code within my lifetime. (That's the ultimate aim, right?)
-
Note to future self: when you want git to tell you all the files you've modified, but not those you've deleted (e.g. to pipe through xargs and feed to your linter for bulk-linting), the command you're looking for is -
git diff --name-only --diff-filter=M
-
Last year, a colleague introduced me to lazygit, a TUI git client with a wealth of value-added features.
Somehow, though, my favourite feature is the animation you see if you nuke the working tree. ๐ Excellent.
-
Reinventing Git interface
Nikita Prokopov proposes a series of changes to Git that would "fix" its warts without breaking backwards compatibility, and they're brilliant.
-
git poem
Altgit poem
-
git git git git git
Ever found you've accidentally entered too many gits in your terminal and wondered if there's a solution to it? I quite often type git then go away and come back, then type a full git status after it. This leads to a lovely (annoying) error out the box:
$ git git status
git: 'git' is โฆ

