News for hackers. Stuff that matters.
Re:Learn Git Branching by Cthulhu_ on Monday September 16, 2024 @05:49AM (#41554399)
My git status is `git s` aliased to `git status -sb`, don't need all the extra clutter.

I also have a few .zshrc aliases, like `gap` which is `git add -p` or `gam` which is `git commit --amend --no-edit`.

But also some typo fixing ones that I end up doing a lot, some because I type in half a command and get distracted / check something, then start over with a partially filled in command:

    alias gigit="git"
    alias gitgit="git"
    alias ggit="git"
    alias qgit="git"
    alias ght="git"
    alias got="git"
    alias cleear="clear"
    alias gits="git s"
Another trick, in your .gitconfig, add this [alias]:

    git = !git
That way, if you accidentally do `git git commit` or whatever (like above) it just works. Also, some typo fixes there:

    commmit = commit
    comit = commit

There are no comments on this comment yet.