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

  • Home
  • SEARCH
  • 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 873467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:56:26+00:00 2026-05-15T10:56:26+00:00

I have forked the git repository of a project on Github and made my

  • 0

I have forked the git repository of a project on Github and made my own changes to it.
I wanted to get a diff between my repository and the original
repository that I’ve forked. Can someone tell me the git command
to get that diff?
I need to submit the diff for review.

Original repository:

git://github.com/apache/hive.git

My repository:

git@github.com:prafullat/hive.git

Here are the details from my .git/config

[remote "origin"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git@github.com:prafullat/hive.git
[remote "mirror"]
    fetch = +refs/heads/*:refs/remotes/origin/*
    url = git://github.com/apache/hive.git

I tried looking at other posted questions regarding the same topic and
could not get it to work.

Any help would be highly appreciated.

  • 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-15T10:56:27+00:00Added an answer on May 15, 2026 at 10:56 am

    Getting commit sha1 manually and using them in diff
    solved the problem!

    [prafulla@prafulla-laptop .git] $cd refs/remotes/
    [prafulla@prafulla-laptop remotes] $cat origin/trunk
    1c4fa827f4fad2aad67a4fa5b57d88afe51d1559
    [prafulla@prafulla-laptop remotes] $cat mirror/trunk 
    14f5fb7cba7bef466727a5b721c7c202e80e5dfd
    [prafulla@prafulla-laptop remotes] $git diff 14f5fb7cba7bef466727a5b721c7c202e80e5dfd 1c4fa827f4fad2aad67a4fa5b57d88afe51d1559
    .......
    .... diff follows!.......
    
    
    • 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 a git repository and setup upstream. I've made some changes in
I have forked a private repository (an iPhone project) as follows: cd nameofdirectory git
I have forked a repository, then I made some changes and it looks like
I have a repository on github, and someone else has forked it and made
I am reasonably new to Git and recently forked a project from GitHub, made
I am new to git. I have forked another repository awhile back. I wanted
I have forked a repository on github some time ago, made a small change
Suppose we have the following repository structure on github: company:project.git \- company:submodule.git A developer
I have forked resque repo from Github and made some changes to tag v1.20.0.

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.