Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github compare two different repository from different users

Tags:

git

github

I want to compare repo_a from user_a AND repo_b from user_b. I tried to fork them but I still can't compare them!

How can I do this? Can i do it with the Github website? I want to compare them visually, not just in a log file.

like image 924
MohamadKh75 Avatar asked Oct 21 '25 04:10

MohamadKh75


2 Answers

GitHub can do a comparing across forks. For example, you can compare the forked repository's master with origin's master like:

https://github.com/octocat/linguist/compare/master...octo-org:master

See GitHub Documentation: Comparing commits across time

like image 180
Mincong Huang Avatar answered Oct 22 '25 18:10

Mincong Huang


You could see the command-line tool github-compare

github-compare urfave/cli spf13/cobra

┌─────────────────────────┬────────────────┬────────────────────┐
│ METRICS                 │ URFAVE/CLI     │ SPF13/COBRA        │
├─────────────────────────┼────────────────┼────────────────────┤
│ 🏠 homepage             │ <nil>          │ https://cobra.dev  │
│ 🌎 language             │ Go             │ Go                 │
│ 📌 license              │ MIT License    │ Apache License 2.0 │
│ ⏰ age                  │ 3237 days      │ 3185 days          │
│ 🌟 stars                │ 18354(5/d)     │ 26748(8/d)         │
│ 📊 latestDayStarCount   │ 8 (down)       │ 18 (up)            │
│ 📉 latestWeekStarCount  │ 99 (up)        │ 115 (up)           │
│ 📈 latestMonthStarCount │ 396            │ 499                │
│ 👏 forks                │ 1564(0/d)      │ 2325(0/d)          │
│ 👀 watchers             │ 304            │ 350                │
│ 💪 issues               │ 134/650        │ 107/891            │
│ 💯 pull requests        │ 22/751         │ 55/808             │
│ 👥 contributors         │ 244            │ 246                │
│ 🚀 releases             │ 46             │ 16                 │
│ 🔭 release circle(avg)  │ 70 days        │ 199 days           │
│ 🎯 lastRelease          │ 1 day(s) ago   │ 2 month(s) ago     │
│ 🕦 lastCommit           │ 17 hour(s) ago │ 23 hour(s) ago     │
│ 📝 lastUpdate           │ 2 hour(s) ago  │ 1 hour(s) ago      │
└─────────────────────────┴────────────────┴────────────────────┘
like image 25
Keson An Avatar answered Oct 22 '25 19:10

Keson An