Skip to main content

Git

Git commands.

Sites

  • oh shit, git or dang it, git, when you think you messed up
  • Git Tips and Tricks
    • git blame -w -C -C -C -L 15,26 path/to/file, ignore rename, movements, etc.
    • git diff --word-diff, diff by word, e.g. tailwind
    • git config --global branch.sort -committerdate, sort branches by last commit
    • git push --force-with-lease, only force push if the ref is latest
    • git maintenance start, cron job for prefetch and other optimizations
    • git config core.fsmonitor true on large repo, faster git status

Notes