From a5be265d69f86a68128052ae21a5cb13b931cc04 Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Sun, 6 Mar 2016 16:58:58 +0530 Subject: [PATCH] Commits in Branch1 that are not in Branch2 --- README.md | 6 ++++++ tips.json | 3 +++ 2 files changed, 9 insertions(+) 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" }]