Skip to content

Instantly share code, notes, and snippets.

@simonbingham
Created February 15, 2024 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonbingham/bd36fb4dbb8203c4df28041451bd46ca to your computer and use it in GitHub Desktop.
Save simonbingham/bd36fb4dbb8203c4df28041451bd46ca to your computer and use it in GitHub Desktop.
Helpful Git Commands
# use column view for `git branch`
git config --global column.ui auto
# sort by committer date when using `git branch`
git config --global branch.sort -committerdate
# reapply conflict resolution on subsequent conflict
git config --global rerere.enabled true
# less dangerous when collaborating
git push --force-with-lease
# adds a cron task that runs in the background to make things faster
git maintainance start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment