los-opinionated-git-tools

A collection of Very Opinionated Git tools and aliases to aid my Git workflow. Will these aid yours? (by mfontani)

Los-opinionated-git-tools Alternatives

Similar projects and alternatives to los-opinionated-git-tools

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better los-opinionated-git-tools alternative or higher similarity.

los-opinionated-git-tools reviews and mentions

Posts with mentions or reviews of los-opinionated-git-tools. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-06-12.
  • Ask HN: Tools you have made for yourself?
    97 projects | news.ycombinator.com | 12 Jun 2021
    A bunch of shell scripts I've written over the years are available from https://git.marcofontani.it/mfontani/scripts

    Very useful ones:

    - evenodd, to colorize the background of lines of text so it's easier to see which start of text corresponds to which end of text

    - time-rollup, to time the time it takes to run a given command and provide percentage-based statistics on the execution

    - a wrapper around "jq" to make it DWIM w/regards to gzipped, bzipped, and zstd-compressed files

    I've also put some full-fledged binaries on github:

    - https://github.com/mfontani/prettycrontab which is a crontab pretty-printer which parses a possibly specially commented crontab to give you an overview of what's coming up next

    - https://github.com/mfontani/tstdin to timestamp your stdin, and provide when the line was received, how long it was since the start of the command, and how long it was since the last line was received. Useful to add at the end of a pipe to both log and perform analysis on the output and time it took to do stuff

    - https://github.com/mfontani/rofixec to "sorta template" a rofi (a X11 runner) runner so it picks commands from a given list (provided as yaml or json configuration) and executes the picked item in a background job

    - https://github.com/mfontani/git-recent which helps you pick the most recent branches you've worked on, very useful when paired with fzf for picking

    - https://github.com/mfontani/los-opinionated-git-tools instead contains a ton of useful little git-related scripts, from one which DWIMs the master/main/blead branch name to one which helps you reauthor the last commit, to one (git-rr) which helps you perform a git rebase with context info about the commits you're rebasing: which files they touched, etc - to make it easier to fixup together commits which touched the same file... which is an operation I do so often I've created a "git-fixup" script, which automates fixing up the currently committed file to the last commit which touched that file in the branch

  • GitHub, f ck your name change
    6 projects | news.ycombinator.com | 17 Mar 2021
    I've had to deal with projects where the "main" branch was named: master, main, blead.

    I almost never "name" that "main" branch, thanks to commands and aliases.

    When I want to pull (and rebase) to the "main" branch, I run "git prom". When I want to check out the "main" branch, I "git com". What actually happens depends on what the project's "main" branch is. If a project later moves to a "live" branch, I'll just update the "git-main" script to detect it ahead of the rest, and off I go.

    https://github.com/mfontani/los-opinionated-git-tools/blob/m... is less than ten lines of bash.

    git-com is really just: git checkout "$(git main)"

    git-prom is really just: git pull --rebase origin "$(git main)"

    I'm not particularly sold on "main" vs "master" being an important thing, but if it's important to some I at least want to ensure I don't get frustrated when interacting with a project which uses it. With the above aliases and functions and programs, I don't care anymore.

    main, master, blead... call it whatever.

Stats

Basic los-opinionated-git-tools repo stats
2
5
0.0
over 1 year ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com