Skip to content

Commit a5be265

Browse files
committed
Commits in Branch1 that are not in Branch2
1 parent 46e66ce commit a5be265

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
* [skip staging area during commit.](https://github.com/git-tips/tips#skip-staging-area-during-commit)
9090
* [List ignored files.](https://github.com/git-tips/tips#list-ignored-files)
9191
* [Status of ignored files.](https://github.com/git-tips/tips#status-of-ignored-files)
92+
* [Commits in Branch1 that are not in Branch2](https://github.com/git-tips/tips#commits-in-branch1-that-are-not-in-branch2)
9293

9394
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
9495
<!-- @doxie.inject end toc -->
@@ -617,5 +618,10 @@ git check-ignore *
617618
git status --ignored
618619
```
619620

621+
## Commits in Branch1 that are not in Branch2
622+
```sh
623+
git log Branch1 ^Branch2
624+
```
625+
620626
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
621627
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,4 +272,7 @@
272272
},{
273273
"title": "Status of ignored files.",
274274
"tip": "git status --ignored"
275+
},{
276+
"title": "Commits in Branch1 that are not in Branch2",
277+
"tip": "git log Branch1 ^Branch2"
275278
}]

0 commit comments

Comments
 (0)