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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:30:52+00:00 2026-06-02T23:30:52+00:00

Help! My git repos are in a pickle! Pushing and pulling local and remote

  • 0

Help! My git repos are in a pickle!

Pushing and pulling local and remote branches says Already up-to-date. But examining the files reveals differences between them.

This is complicated by the fact that I have two local branches, master and staging, each tracking remote versions of the same.

I’ve spent a few hours trying to work out a systematic way to sort this out. But I’m worried I’m going to make it worse and lose edits in the process.

Is there a recommended approach in these cases?

EDIT

->git remote show origin                 
* remote origin
  Fetch URL: git@github.com:mygits/myrepo.git
  Push  URL: git@github.com:mygits/myrepo.git
  HEAD branch (remote HEAD is ambiguous, may be one of the following):
    master
    staging
  Remote branches:
    master  tracked
    staging tracked
  Local refs configured for 'git push':
    master  pushes to master  (up to date)
    staging pushes to staging (up to date)
  • 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-02T23:30:53+00:00Added an answer on June 2, 2026 at 11:30 pm

    Your ‘git remote origin show’ indicates that master and staging are identical. So it may be no surprise that both are ‘Already up-to-date’ but it depends on what you have locally. Explore a bit with:

    git fetch origin
    git diff --name-status master..origin/master         # ditto for 'staging'
    git diff --name-status master..staging                  # local differences
    

    With these three ‘diffs’ (two shown, one more for ‘origin/staging’) you’ll have an understanding about what git thinks are the differences between the commits on your four branches.

    You still have the question of differences between what is in your working directory but ‘git status’ will show you those and they are not relevant to your pushing and pulling problem. (If anything local differences will prevent pulling which you don’t indicate as the problem.)

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

Sidebar

Related Questions

I have a local git repository. Recently I have added a remote repository from
I want to keep my Vim plugins up-to-date with git by using github repos
I have a problem with with remote git repo and local repo (using SmartGit).
thanks for any help. I have a git repo on my local machine (mac
I'm using Linonde to host my git repos and also the actual site files.
I need help getting git extensions to run with msysgit. I have had bad
I need connect to server git. http://help.github.com/win-set-up-git/ I do everything to the point, 4
I have followed the instructions here: http://help.github.com/win-set-up-git/ to set up git on my windows
Help! I'm using the ASP.Net Login control on a Login page, but the Login
If there is anyone that can help me understand why this git repo isn't

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.