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

  • Home
  • SEARCH
  • 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 8457321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:46:55+00:00 2026-06-10T12:46:55+00:00

Master HEAD has a few changes and I’m trying to merge my current local

  • 0

Master HEAD has a few changes and I’m trying to merge my current local changes with the Head.
Suppose I have conflicting changes. git just refuses to pull.

It says I have conflicting changes, so in this case I expect it to tell me the files that have conflicts but it expects me to revert my local changes and then pull

     Master 
     /    \
  branch1  branch2 (local)
      \
   Master 

When branch2 tries to commit changes to master fails. What should I do in this case? Manually copy files to some location, pull and the then use winmerge to merge the files? or is there a better way to to merge?

When I do a git pull, it states that – local changes will be overwritten, so stash or commit the changes before pull.

When I stash or commit the changes, and then pull stash pop fails stating that the changes in working copy will be overwritten.

BTW, I never see a file with conflicts in either of the cases, even when I try a rebase.

  • 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-10T12:46:57+00:00Added an answer on June 10, 2026 at 12:46 pm

    Looks like the best way to work with GIT is have branches.

    Branch 1
    GIT Commit
    GIT PUSH
    GIT MERGE master ( to fetch the newer changes)

    Branch 2
    GIT Commit
    GIT PUSH

    master
    GIT Merge branch1
    GIT Merge branch2

    I dont think there any other way. Please correct me if i am wrong?

    Is this correct, If yes, in this case working with branches is smooth!

    • 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
My local tree has diverged from the master: $ git status # On branch
I have a Site.Master in my ASP.NET project which defines a HEAD section as
Using ASP.Net MVC on my Site.Master I have: <head runat=server> <title><asp:ContentPlaceHolder ID=TitleContent runat=server />
I have a master page in which I have the following code. <head runat=server>
I have the following markup inside a master page <html xmlns=http://www.w3.org/1999/xhtml > <head runat=server>
So I have a master page in MVC that has the following code in
I have a repository set up on a server running Git, the repository has
I have a simple project that has one submodule. $ git submodule 964737623a362f6303e87ec41f2c7090c8c2c093 lib/mongodb-php-odm
I'm trying out git for local workflow management, with an eye toward proposing it

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.