Skip to content

Instantly share code, notes, and snippets.

@rlabbe
Last active May 16, 2022 16:02
Show Gist options
  • Save rlabbe/820342bb54fca622a85a5164e3dd4a6c to your computer and use it in GitHub Desktop.
Save rlabbe/820342bb54fca622a85a5164e3dd4a6c to your computer and use it in GitHub Desktop.
Git diff on Jupyter notebook to ignore most of the irrelevant output cell changes
$ git diff 5579009 -I image/png -I execution_count -I \"version\":
minimal log to just see commit, author, and one line comment
$ git log --pretty=format:"%h%x09%an%x09%ad%x09%s"
git config --global alias.jdiff "diff -I image/png -I execution_count -I \"version\"::
git config --global alias.slog "log --pretty=format:"%h%x09%an%x09%ad%x09%s""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment