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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:17:46+00:00 2026-06-09T10:17:46+00:00

I have two branches locally, master and Berislav . The latter is currently active,

  • 0

I have two branches locally, master and Berislav. The latter is currently active, and I have committed all the changes. When I try to checkout to master, I get the following message:

error: Your local changes to the following files would be overwritten
by checkout: [list of files changed in the active branch] Please,
commit your changes or stash them before you can switch branches.
Aborting

However, everything else I tried — commit, status, merge — tells me that there’s nothing to commit (working directory clean). What do I need to do to get to my master branch?

EDIT: When I try git stash, I’m getting:

error: feeding unmodified [file path] to diffcore

for all the files listed in the error above.

  • 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-09T10:17:48+00:00Added an answer on June 9, 2026 at 10:17 am

    I encountered a similar problem today. git status wasn’t listing the files which checkout was complaining about. I did a:

    git checkout -- path/to/file
    

    And that undoes any changes to the file.

    An even easier way to undo all unstaged changes on current working directory [1]:

    git checkout -- .
    

    [1] – Be warned – you will lose any other unstaged changes you were working on (if any). If you don’t know what you are doing, then keep a backup of the files you were working on 🙂

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

Sidebar

Related Questions

I have two branches: master and experimental . I'd like to rebase the changes
I have two branches: master and bonbon Currently they are at the same point.
I have two branches master and exp i tried to cherry pick some of
I have two branches I normally work on: master and homepage_buildout. I was recently
I'm running SourceSafe and I have two branches of my code. I'm currently using
I have two branches to my project, master and test branches . when I'm
I have two branches in my Git repository: master seotweaks (created originally from master
I have two branches:master and v2. I want to merge v2 in master so
I have two branches: master and bug1. I checked out bug1, did bunch of
I have two branches off of master, each one for a different feature, and

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.