Skip to content

Dan Q

    • Articles
    • Everything
    • Notes
    • Reposts (shares)
    • Checkins (geo*)
    • Videos
    • Reviews
    • Comics
    • Tags
    • Stats
    • Subscribe
    • Blogroll
  • About
    • Hide posts of type:
    • Choose how Dan's dressed:
    • Hair
    • T-Shirt
  • Contact
  • Podcast

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

    Full image of GitHub change summary showing +218 lines added, -2,663 lines removed.
    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
    • posted 1 August, 2025
  • 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

    • Note
    • posted 14 June, 2025
  • 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.

    Animation showing lazygit, a command-line git client. The working tree has one changed file, config/routes.rb. With a couple of keypresses, the working tree is nuked, with a colourful ASCII-art animation illustrating the destruction of the changed file (actually, it being reset to the previous version).

    • Note
    • posted 21 January, 2025
  • Image representing post: Reinventing Git interface

    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.

    Read more (181 words)

    • Repost
    • posted 20 January, 2020
  • Image representing post: git poem

    git poem

    Altgit poem

    Read more - about 0 minutes (0 words)

    • Repost
    • 1 comment
    • posted 30 September, 2017
  • 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 โ€ฆ

    Read more (265 words)

    • Repost
    • 1 comment
    • posted 30 September, 2017

Get in Touch

I'd love to hear from you! Why not...

  • email me on blog@danq.me?
    (my spam filter is aggressive, so use a good subject line, i.e. not just "hello"; encrypt your email if you like)
  • say hi on Mastodon, where I'm @dan@danq.me?
  • send a letter or postcard to
    Dan Q, Unit 159610, PO Box 7169, Poole, BH15 9EL, UK
  • reach out some other way?
  • ยฉ Dan Q 1998-2026
  • Creative CommonsAttributionNon-Commercial except where stated (how to use)
  • powered by BloqClassicPressHTML5CSS3
  • privacy
  • Read articles, checkins, notes, reposts, and more...
  • @dan@danq.me
  • contact
  • subscribe
  • Dan Q
  • Creative Commons Attribution Non-Commercial license
  • ClassicPress
  • CSS is awesome
  • Created by a human, not by AI
  • LGBTQ+ pride flag (2018 progress variant)
  • Polyamory flag
  • Say no to Web3
  • Mastodon (it's like email... no, come back!)
  • Tested on Firefox
  • Best viewed on the Internet
  • PHP
  • Ruby
  • Debian
  • Caddy (webserver)
  • Find me on Melonland
  • Check out my GitHub
  • Three Rings - by volunteers, for volunteers, since 2002
  • I'm a fucking webmaster
  • Looks best at: any resolution!