Skip to content

Instantly share code, notes, and snippets.

@AndyDangerous
Created March 21, 2019 17:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndyDangerous/d5b152d5b42ebc5c1d656058905686b4 to your computer and use it in GitHub Desktop.
Save AndyDangerous/d5b152d5b42ebc5c1d656058905686b4 to your computer and use it in GitHub Desktop.

Git resources

Gitflow

Dont use gitflow. That shit is needlessly complex and will turn your git log into a goddamn nightmare. Good luck trying to find or fix a problem introduced in one of those long-running branches. git bisect won't work, and reverting will be a mess.

A few nice tips:

  • add files with git add --patch It is more granular and you're more likely to catch small things that you didn't mean to add.
  • I don't use many aliases, buit this one is great: glod='git log --graph --pretty="%Cgreen%h%Creset%Cblue%d%Creset %Cred%an%Creset: %s"'
  • tig is a helpful command-line tool for looking at your commits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment