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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:34:34+00:00 2026-05-16T04:34:34+00:00

Coming from an svn background, I had this question: git equivalent of svn status

  • 0

Coming from an svn background, I had this question:

git equivalent of svn status -u

(what is the git equivalent of svn status -u)

And I understand, you do:

git fetch
git log ..origin/master

But, I’m guessing the origin/master part depends on the branch? It wouldn’t necessarily be master if I was tracking a remote branch?

I also don’t understand the git merge origin/master precisely. I’m guessing that just means that git fetch grabbed the changes from the remote and put them into the git database system as origin/master and I’m in just master? What if I fetched changes, check what was done, am horrified by the changes and don’t want to merge? How do I basically abandon them?

  • 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-16T04:34:35+00:00Added an answer on May 16, 2026 at 4:34 am

    git fetch

    git fetch grabs changes from remote repository and puts it in your repository’s object database. It also fetches branches from remote repository and stores them as remote-tracking branches.

    When you are fetching git tells you where it stores each branch on remote repository it fetches. For example you should see something like

       7987baa..2086e7b  master -> origin/master
    

    when fetching. This means that ‘origin/master’ stores where ‘master’ is on ‘origin’ repository.

    If you examine .git/config file, you would see the following fragment:

    [remote "origin"]
            url = git://git.example.com/repo.git
            fetch = +refs/heads/*:refs/remotes/origin/*
    

    This (among others) means that any branch ‘A’ (‘refs/heads/A’) in origin remote (repository you cloned from) would be saved as ‘origin/A’ (‘refs/remotes/origin/A’).

    git log ..origin/master

    As you can see ‘origin/master’ is ‘master’ in origin. If you are on (default) ‘master’ branch, then git log ..origin/master, which is equivalent to git log HEAD..origin/master, which when on ‘master’ branch is equivalent to git log master..origin/master would list all commits that are on ‘master’ branch in remote repository and are not in local ‘master’ branch where you do your work.

    The more generic version in modern git (assuming that upstream / tracking information exists) would be to use simply

    $ git log ..@{u}
    

    (Here @{u} is synonym for @{upstream}, see gitrevisions manpage).

    git merge origin/master

    git merge is used to join two lines of history. If one of sides didn’t do any work since last branching point (since merge base), the situation is either fast-forward (the branch you are on is simply updated to the tip of the branch you are merging), or up-to-date (there is nothing new to merge, and the branch you are on stays unchanged).

    git fetch followed by git merge origin/master, when on ‘master’ branch, is equivalent to issuing

    $ git pull
    

    If you don’t want to merge, you don’t need to. Note that you can use e.g. git reset --hard HEAD@{1} to go back and discard result of git pull if you don’t like it.

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

Sidebar

Related Questions

Coming from GIT and SVN background, I've set up my P4V in windows, managed
Coming from svn, just starting to become familiar with git. When a branch is
Coming from an svn background: I hardly ever branched, due to the (lack of)
I'm new to git, coming from SVN world. So far, it seems a lot
I'm new to Subversion (SVN) coming from a Visual Source Safe (VSS) background. In
I just started playing around with git (coming from SVN), and I'm sure I'm
I'm new to both git and OSX, coming from Ubuntu and svn. When I
I think I am just merely (coming from an SVN background) confused with how
I'm new to TFS, coming from an SVN background. I'm looking to set up
I'm new to perforce, coming from a history of cvs->svn->git. I'm having a difficult

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.