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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:00:04+00:00 2026-06-03T12:00:04+00:00

Here is the scenario: I clone the staging branch of my codebase: git clone

  • 0

Here is the scenario:

  1. I clone the staging branch of my codebase:

    git clone -b staging git@my.giturl.com:/my-repository.git .
    
  2. I make a change elsewhere and push it to the origin

  3. I attempt to pull my changes to my checkout:

    git pull origin
    

The previous statement fails giving me this:

Updating 7bb2dae..f711fb0
error: Your local changes to the following files would be overwritten by merge:
    sites/all/modules/broker_auth/broker_auth.module
Please, commit your changes or stash them before you can merge.
Aborting

broker_auth.module is the file I changed elsewhere, but locally nothing has been touched. Why does it say it has changed? The only way I can fix is to do the following (which takes a while, perceivably because it’s redownloading the entire repository)

git reset --hard
git pull origin

Is it really required that I do a reset in this situation? I feel like I’m managing my branches incorrectly but I’m having trouble figuring out what is happening.

  • 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-03T12:00:16+00:00Added an answer on June 3, 2026 at 12:00 pm

    I found the cause of my issue. It ended up being my server was changing the permissions of my files so all the files were being marked as modified. I ran the following command git config core.filemode false, which essentially ignores filemode changes, and now my fetches work first time everytime. Hope this helps someone having similar issues.

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

Sidebar

Related Questions

I got this scenario: I created a Git repository. $ git init Cloned an
Using Git with Xcode (4.3) is a real nightmare. Here's a scenario... I want
I know how to write tab host,but here the scenario is little bit different
Here's my scenario: <!-- Normal Control --> <div class=required> <label for=address1>Address line 1</label> <input
here is my scenario our team develops on AIX dozens of applications, mostly Perl,
Here's the scenario. I'm using a url rewriter that allows me to specify patterns
Here's the scenario: I'm an SSIS virgin, but I found an excuse to start
Here is the scenario: I have a visual that displays some data The data
Here's the scenario: if this is a user's first time logging into my web
Here is my scenario: I'm using nhibernate, openning and closing the session in an

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.