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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:45:44+00:00 2026-06-01T09:45:44+00:00

First: apologies for the question title, I don’t actually know what the problem is

  • 0

First: apologies for the question title, I don’t actually know what the problem is so I don’t know how to ask about it.

I want to diff my master with upstream master (should be origin/master, based on the way my remotes are set up).

But: origin was put there after I had been working on it locally for a while, so it’s “origin” in name only. That is: I had a local repo, put it up into a gitolite setup, and then told my local git to call it origin.

These are the symptoms:

$ git diff master orgin/master
fatal: ambiguous argument 'orgin/master': unknown revision or path not in the working tree.

$ git diff master origin/master --
fatal: bad revision 'origin/master'

Hm.

$ git remote -v
origin  git@example.com:example (fetch)
origin  git@example.com:example (push)

okay, that looks right.

$ git branch -a
... # nothing from origin

Hm.

$ git fetch -a origin
From example.com:example
* branch            HEAD       -> FETCH_HEAD

I have no idea if that’s correct. It looks productive, but git diff master origin/master still fails, and:

$ git branch --track omaster origin/master
fatal: Not a valid object name: 'origin/master'.

Wha?

$ ls .git/refs/remotes
gitps  ps

That looks wrong: those are old remotes that haven’t existed for months. Also they’re empty. And .git/remotes doesn’t exist at all, although I’m not sure that it should.

  • 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-06-01T09:45:46+00:00Added an answer on June 1, 2026 at 9:45 am

    You may need to tell git which branches to fetch from origin. In the .git/config file for this repo, under the [remote "origin"] section, there should be a line like fetch = .... This tells git what to fetch and where to put it locally. Here’s a pretty standard example:

    [remote "origin"]
            fetch = +refs/heads/*:refs/remotes/origin/*
            url = ssh://...
    

    If you don’t see the fetch = ... line, you can safely add it to match the example, which is the standard “track all branches and call them origin/branch locally” option set up by git clone.

    See the git pro book for a good description of what’s going on.

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

Sidebar

Related Questions

First of all, my apologies for the title of this question, I don't have
Whew! First off, my apologies for the title, I don't speak English often. My
First of all, apologies for the title of this question, but i couldn't come
First of all, I apologise for the vagueness of the question title and if
First of all, I am new to python/nltk so my apologies if the question
(First question related to iPhone development, so apologies for sounding off-track.) I'm creating a
First, apologies for repeating a variation of an often asked question. However, I am
Here's my HTML. Apologies for formatting - this is my first-ever question! <div id=Template>
First I want to apologize for such a silly question but I'm quite new
My apologies if this question is too general, as this is my first time

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.