https://github.com/djuuu/git-compare-branches
Simple git branch comparator
https://github.com/djuuu/git-compare-branches
git
Last synced: 3 months ago
JSON representation
Simple git branch comparator
- Host: GitHub
- URL: https://github.com/djuuu/git-compare-branches
- Owner: Djuuu
- Created: 2015-06-12T12:44:38.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-02-04T20:19:42.000Z (over 7 years ago)
- Last Synced: 2025-10-11T00:37:33.960Z (9 months ago)
- Topics: git
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-compare-branches
This script compares two branches by showing which other branches are specifically merged into each one.
## Installation
* Clone The repository
Then :
* Create a symlink to the script in a directory in your path
```bash
ln -s /path/to/git-compare-branches/git-compare-branches.sh ~/bin/git-compare-branches
```
OR
* Create a git alias in your `.gitconfig`
```ini
[alias]
compare-branches = "!bash /path/to/git-compare-branches/git-compare-branches.sh"
```
## Usage
```bash
git compare-branches toto tata
```
```
Branches merged only in toto :
azer
remotes/origin/ytui
remotes/origin/op
Branches merged only in tata :
qsdf
ghjk
remotes/origin/lm
```