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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:33:48+00:00 2026-06-04T01:33:48+00:00

I think I’m on the right track to understand the basic concepts of git.

  • 0

I think I’m on the right track to understand the basic concepts of git.

I’ve already set up and cloned a remote repository. I also created a server side empty repository, and linked my local repository to it.

My problem is that I don’t understand the difference between:

  • origin/master vs. remotes/origin/master

As far as I have understood, master is a local branch, and remotes/origin/master is a remote one.

But what exactly is origin/master?

  • 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-04T01:33:50+00:00Added an answer on June 4, 2026 at 1:33 am

    Take a clone of a remote repository and run git branch -a (to show all the branches git knows about). It will probably look something like this:

    * master
      remotes/origin/HEAD -> origin/master
      remotes/origin/master
    

    Here, master is a branch in the local repository. remotes/origin/master is a branch named master on the remote named origin. You can refer to this as either origin/master, as in:

    git diff origin/master..master
    

    You can also refer to it as remotes/origin/master:

    git diff remotes/origin/master..master
    

    These are just two different ways of referring to the same thing (incidentally, both of these commands mean “show me the changes between the remote master branch and my master branch).

    remotes/origin/HEAD is the default branch for the remote named origin. This lets you simply say origin instead of origin/master.

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

Sidebar

Related Questions

I think I have a fairly basic question here. I'm not trying to waste
I think I'm missing something basic here. Why is the third IF condition true?
I think I'm missing something basic here. Any explanation or pointers to previously asked
Think I'm missing a basic concept. I want to generate html by traversing through
I think they are same thing but my boss say that is not right.
Think of a small and basic affiliate system. I want an URL like www.myshop.com/mynewproduct.html?afid=123
I think most people know how to do this via the GUI (right click
I think most people here understand the importance of fully automated builds. The problem
I think there is a problem with my ImageView. i created a gallery, where
I think I am not getting something right with JMS and JTA. I am

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.