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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:30:40+00:00 2026-05-13T08:30:40+00:00

I am a newcomer to GIT and wanted to know how to just get

  • 0

I am a newcomer to GIT and wanted to know how to just get a latest version of the trunk and DISCARD all of my curent changes.

All I seem to get is the notuptodate error. I do not want to save my old changes…

I also get Your branch is behind 'origin/master' by 15 commits, and can be fast-forwarded. How do I fast forward? Again, I don’t care about changes I have made.

Many thanks in advance, as I the current answers on SO seems to assume you wish to keep changes

Example of error (and things that have been tried)

$ git checkout 

$ git pull 

Updating 69edec1..dc3fdfe error: Entry 'src/FluentNHibernate.Testing/DomainModel/Mapping/CompositeIdentityPartTester.cs' not uptodate. Cannot merge.

$ git checkout -- src/FluentNHibernate.Testing/DomainModel/Mapping/CompositeIdentityPartTester.cs 

$ git pull 

Updating 69edec1..dc3fdfe error: Entry 'src/FluentNHibernate.Testing/DomainModel/Mapping/CompositeIdentityPartTester.cs' not uptodate. Cannot merge.

$ git reset --hard

$ git pull 

Updating 69edec1..dc3fdfe error: Entry 'src/FluentNHibernate.Testing/DomainModel/Mapping/CompositeIdentityPartTester.cs' not uptodate. Cannot merge.

FIXED: I seem to have fixed the issue by using gitk --all and using the GUI to do a hard reset on the lastest change… I would still really like to understand why the commandline wouldn’t do this?

  • 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-13T08:30:40+00:00Added an answer on May 13, 2026 at 8:30 am

    First thing – thanks for the answers from everyone. It does appear to be a bug over user error. Non of the solutions suggested worked apart from gitk –all and then using the GUI to ‘reset master branch here’

    Not ideal but it did work.

    Thanks

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

Sidebar

Related Questions

I'm a newcomer to python. I just downloaded the 2.x version and am trying
I'm a newcomer to clojure who wanted to see what all the fuss is
I'm a newcomer trying to get my feet wet with Ruby and Sinatra. I
Newcomer to Objective C and trying to translate concepts and sytax I know from
A newcomer to Lisp. I know that (mapcar #'list '(1 2) '(3 4)) will
I'm a total newcomer to GIT and repositories, so I ran into a problem
As a newcomer to PHP, I need to get $_SESSION variables working as part
before I start you should know that I am a bloody newcomer when it
I am just a newcomer developing an app with html/css/js via phonegap. I've been
I'm a newcomer to Ruby just using this forum to help understand the language

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.