Skip to content

Instantly share code, notes, and snippets.

@nulltier
Created January 19, 2021 06:42
Show Gist options
  • Save nulltier/5c2370b1d9edecbdb078dc71c52956c9 to your computer and use it in GitHub Desktop.
Save nulltier/5c2370b1d9edecbdb078dc71c52956c9 to your computer and use it in GitHub Desktop.
git tricks

One-side diff

To show the changes in current branch which a not yet merged into target branch

> git diff target...HEAD

One-side log

To show the commits which not yet merged from current branch into target one

> git log target..HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment