Git Aliases - My way of learning Git

This page summarizes the projects mentioned and recommended in the original post on /r/git

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • Puts Debuggerer

    Ruby library for improved puts debugging, automatically displaying bonus useful information such as source line number and source code.

  • [alias] ad = add ada = add . adc = !git add . && git commit adi = add -i br = branch brd = branch -d brr = branch -r brv = branch -v cf = cat-file cfp = cat-file -p cft = cat-file -t cl = clone clh = "! f() { git clone https://github.com/$1/$2.git ; }; f" clhd = "! f() { git clone https://github.com/drskoolie/$1.git ; }; f" cls = "! f() { git clone [email protected]:$1/$2.git ; }; f" clsd = "! f() { git clone [email protected]:drskoolie/$1.git ; }; f" cn = clean cnf = clean -f cni = clean -i cnn = clean -n co = commit com = commit -m de = describe di = diff dih = diff HEAD~1 din = !git --no-pager diff --no-color dis = diff --staged ed = config --global -e fe = fetch feo = fetch origin gr = grep -n -I lo = "! f() { git log --no-color --no-decorate | bat -n -l 'Git log' ; }; f" loa = log --all --decorate --oneline --graph lod = log --decorate --oneline --graph lop = log -p lor = git log --graph --decorate --oneline $(git rev-list -g --all) lot = log --simplify-by-decoration me = merge med = merge develop mem = merge main met = mergetool pu = push puo = push origin puod = push --delete origin puot = !git push origin $(git describe --tags --abbrev=0) puuo = push --set-upstream origin rb = rebase rf = reflog rm = remote rmao = "!f() { git remote add origin [email protected]:$1/$2.git; }; f" rmr = remote remove rms = "!f() { git remote set-url origin [email protected]:$1/$2.git; }; f" rmsd = remote set-url origin [email protected]:drskoolie/dotfiles.git rmv = remote -v rs = restore rss = restore --staged sa = stash sap = stash pop sh = show sm = submodule sma = submodule add smad = submodule add --depth 1 st = status sts = status -s sw = switch sw- = switch - swc = switch -c swcd = switch -c develop swd = switch develop swm = switch main tg = tag tga = tag -a tgd = tag -d tgn = tag -n99 tgnr = tag -n99 -l --sort=-v:refname [color] ui = true [color "diff-highlight"] oldNormal = red bold oldHighlight = red bold 52 newNormal = green bold newHighlight = green bold 22 [color "diff"] meta = 11 frag = magenta bold func = 146 bold commit = yellow bold old = red bold new = green bold whitespace = red reverse [commit] verbose = true [core] editor = nvim pager = diff-so-fancy | less --tabs=4 -RFX [init] defaultBranch = main [mergetool "nvim"] cmd = nvim -f -c \"Gvdiffsplit!\" \"$MERGED\" [merge] tool = nvim [mergetool] prompt = false [interactive] diffFilter = diff-so-fancy --patch

  • yadm

    Yet Another Dotfiles Manager

  • I'm not yet a Git Wizard yet, you'll find me being very sloppy with my commits as I'm learning it. But you can see me editing my config files very frequently. To copy-paste from the website of yadm.io:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • lf

    Terminal file manager

  • Well let me introduce you to lf, a terminal file browser. I love it. Any application that I use a lot gets the royal treatment (a 1 letter zsh alias).

  • semver

    Semantic Versioning Specification

  • But I also use tags whenever I plan to start on a major revision (using the Semantic Versioning 2.0 style https://semver.org to the best that I can). That way I can reset to it if something terribly goes wrong, or if I end up abandoning the change.

  • oh-my-git

    An interactive Git learning game! (by git-learning-game)

  • What resource did you go to get to that stage? So I've been through the git-scm book (I need to finish the last two chapters, it's pretty dense so I do a little bit and then come back to it when I've got the original commands down pat). And then there are two git games that I played (https://learngitbranching.js.org and https://ohmygit.org). The former was amazing in learning rebasing and cherry-picking and I'm now setting up my commits into more logical hunks.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts