diff --git a/README.md b/README.md index f382da1..f15d6e1 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,7 @@ * [skip staging area during commit.](https://github.com/git-tips/tips#skip-staging-area-during-commit) * [List ignored files.](https://github.com/git-tips/tips#list-ignored-files) * [Status of ignored files.](https://github.com/git-tips/tips#status-of-ignored-files) +* [Commits in Branch1 that are not in Branch2](https://github.com/git-tips/tips#commits-in-branch1-that-are-not-in-branch2) @@ -617,5 +618,10 @@ git check-ignore * git status --ignored ``` +## Commits in Branch1 that are not in Branch2 +```sh +git log Branch1 ^Branch2 +``` + diff --git a/tips.json b/tips.json index b7bd46c..a67df09 100644 --- a/tips.json +++ b/tips.json @@ -272,4 +272,7 @@ },{ "title": "Status of ignored files.", "tip": "git status --ignored" +},{ + "title": "Commits in Branch1 that are not in Branch2", + "tip": "git log Branch1 ^Branch2" }]