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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:31:53+00:00 2026-06-07T22:31:53+00:00

I am looking a file in master on git hub. I am looking at

  • 0

I am looking a file in master on git hub.

I am looking at the same file on my local repo but it is not reflect changes in the master file on the repo committed by someone else.

I tried git pull
git fetch and merge.

What else to I have to do?

  • 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-07T22:31:55+00:00Added an answer on June 7, 2026 at 10:31 pm

    If there are no changes that you want to keep in your working folder, and assuming you did run fetch successfully, you can

    git stash -u # safely clean up your working folder
    

    Then point master to the remote’s version (assuming your remote is called origin):

    git merge --ff-only origin/master # if master is checked out
    

    or

    git push . origin/master:master # if master is not checked out
    

    If you get an error with the last 2, you can add the --force option but remember to save the master to another branch or tag before doing so with

    git branch temp master
    git push origin yourname/temp
    

    or

    git tag -m "last master" temp
    git push origin yourname/temp
    

    the “yourname” part of the remote branch or tag is to let others know that it’s your branch and you don’t necessarily believe it to be valuable to others.

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

Sidebar

Related Questions

We have a problem/misunderstanding with our current git setup. We have local master and
I'm looking at the source for: https://github.com/intabulas/ipivotal/blob/master/Classes/iPivotalAppDelegate.m It looks like the main file for
After I have moved a file in git (using git mv ), looking at
I am looking at this boot.rb file: http://github.com/bestbuyremix/BBYIDX/blob/master/config/boot.rb And after trying to understand it,
I' ve got a problem with Haskell. I have text file looking like this:
I am looking at the File System Filter driver example in the WDK called
I'm looking for batch file code that will copy folders specified in a text
I'm looking for a file utilities library that help creating paths, i.e. if I
I discovered this quite by accident while looking for a file with a number
I'm currently making a filesystem using python-fuse and was looking up where file pointers

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.