Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1089523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:14:08+00:00 2026-05-16T23:14:08+00:00

I have forked a project on github and need to have a set of

  • 0

I have forked a project on github and need to have a set of changes I made since I forked, in diff format.

If you wonder – I’ve forked Apache httpd and I’m changing some code in core. Currently I’m not commiting any changes, running git diff, and use its output as a patch against vanilla httpd sources in an RPM building process. It is, of course, wrong, but I don’t know how to do it properly. All I know is I need a diff in the end.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:14:09+00:00Added an answer on May 16, 2026 at 11:14 pm

    Online solution:

    get /repos/{owner}/{repo}/compare/{base}...{head}
    

    The "compare two commits" API does support multiple repositories:

    Both :base and :head must be branch names in :repo.
    To compare branches across other repositories in the same network as :repo, use the format <USERNAME>:branch.

    Example:

    https://api.github.com/repos/octocat/hello-world/compare/master…abejpn:master

    Or with a GitHub URL:

    https://github.com/octocat/Hello-World/compare/master…abejpn:master


    Original answer 2010:

    • Add the original GitHub repo (the one you have forked) as a remote one on your local repo.
      (git remote add mainRepo github_url)
    • git fetch mainRepo to get the latest changes from that original "mainRepo".
    • git log HEAD..mainRepo/master will show you all your changes between the latest on mainRepo master branch and your current branch.
      git diff HEAD..mainRepo/master would display it in diff format.

    In learn.GitHub:

    git diff mainRepo/master...HEAD
    

    would list all your changes since you have forked from mainRepo:

    This will not compare the last ‘master’ branch snapshot and the last ‘dev’ snapshot – it will instead compare the common ancestor of both with ‘dev’. That will tell you what changed since the branch point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project I forked on github to my repository. I made changes
I have forked the git repository of a project on Github and made my
I forked a project on github, made a new branch and made some changes
I'm wanting to fork a github project that other's have forked and one of
I forked a project on Github from source A. Since then, the standard practice
I am reasonably new to Git and recently forked a project from GitHub, made
I have forked project at github. I make one commit and pull request it.
I forked a project on GitHub, pushed some changes, and opened a pull request.
I have forked a project on GitHub and I want to download only the
I forked a github repo and worked on my github repo. I have made

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.