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 3460784
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:16:19+00:00 2026-05-18T10:16:19+00:00

Here is the situation: I have inherited two separate machines, one used for development

  • 0

Here is the situation:
I have inherited two separate machines, one used for “development” the other is the production machine. The problem: They are of course out of sync. In order to bring some sanity to situation I made independent git repositories of the application directory on each machine.

I now wish to be able to compare those repos so I can find out what is different between them. My idea was to make a third repository that contained two branches, one from the repository of the “dev” machine and one from the repository of the “prod” machine.

Is this or an equivalent solution possible with git ?

Thanks.

  • 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-18T10:16:20+00:00Added an answer on May 18, 2026 at 10:16 am

    This would use what Git calls “remotes,” which are references to what a remote repository contains in order for you to be able to pull it into your own branch, push your branch into the remote repository, etc. You can set up a remote for each of the other machines, and then diff between them to compare them, and you can create one or more local branches from those remotes if you want to do local work.

    What I’d suggest for your situation is cloning your development repository, which will create your third repository that you’ll be working in, and automatically create a remote named origin which points to your development repository (this is the conventional name for the default “upstream” place you will be pulling from an pushing to). Then, add a remote for prod, and now you can compare them and work with them locally. For example:

    git clone me@dev-server:/path/to/repo.git
    cd repo
    git remote add prod me@prod-server:/path/to/repo.git
    git remote update
    git diff origin/master prod/master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, here is the situation - I insert an item in the database calling
Have a very interesting situation and can't seem to find anything concrete on the
Okay, so I had a situation where I needed to add some cloned DOM
I am rather confused, because my trigger in SQL Server cannot insert the value
although I an an old time user of the Website, but managed to resolve
First of all, I apologize for yet another interface question. I thought that this
I want to use a Ninject.Wcf extension to create a parametrized service host instance.
I'm working on an application written in C# to help determine dimensions on cables
Question: Is it possible to include some type of character (like \r or \n,
Although I'm programming in C++, this is more of a general question about design.

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.