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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:56:51+00:00 2026-05-25T10:56:51+00:00

In svn or subclipse, I can simply do a ‘revert’ on the root project

  • 0

In svn or subclipse, I can simply do a ‘revert’ on the root project and all my local changes are discarded and src is updated to the latest in HEAD. I don’t seem to find an equivalent of this in git though several blogs claim the same.

This is what I did:

  • committed 10 files from my home mac. did not push.
  • committed the same 10 files and more from work computer and PUSHED.
  • came back home and I want to take the latest from remote origin/master.

tried git pull, it brought in changes but warned of conflict

tried git reset --hard HEAD, but nothing happened. I still see the committed conflicted changes

I must’ve tried few other commands I don’t remember. I just need to get back to remote head and not worry about what state my local repo is.

Help?

  • 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-25T10:56:52+00:00Added an answer on May 25, 2026 at 10:56 am

    You need to reset to origin/master:

    git reset --hard origin/master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just setup SVN for my java Android project through SubEclipse. Can anyone advise
I can't perform any Subversion operations on my Eclipse project as Subclipse can't rename
Possible Duplicate: SVN plugins for Eclipse - Subclipse vs. Subversive I've been using Subclipse
Hi I have a Subclipse related question. In SVN when you merge the trunk
I have Eclipse 3.4.2 installed on Windows with subclipse. Another developer added an SVN
I have been using TortoiseSVN, svn, and subclipse and I think I understand the
SVN permits the ability to update an old commit message via hook. How can
I am using SVN in Eclipse (Subclipse). It is frustrating to spend two hours
I installed subversion on my Ubuntu server and I can use subclipse (1.6) in
I'm using subeclipse plugin for eclipse for SVN. My project looks like this :

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.