Git fetch and merge error but file not modified -


after fetching remote (git fetch origin), have following commmit tree, , working on "personal_commit"

---develop----origin/develop        \----personal_commit. 

i checked out develop, , try perform merge fast-forwards origin/develop. way, can later rebase personal_commit on develop. error: "your local changes following file overriden merge" "please, commit changes or stash them before can merge".

but there no pending changes on file ! please me resolve this.

notes:

  • although file automatically generated, , can discard safely, possible in 1 of branches, had removed git repository in past.

  • this answer not work because there no changes stash or commit.

git problem

you have untracked file alldiagnostics.cs on local machine, being fetched in upstream code well. since git diff shows diff tracked files only, hence not appearing in output.

also, seem have ignore rule file in .gitignore, because of doesn't appear in output of git status either.

my suggestion rename else (mv alldiagnostics.cs alldiagnostics.cs.bkp), git merge, , apply changes alldiagnostics.cs.bkp freshly fetched file.

if file not supposed committed, can untrack later using

git rm alldiagnostics.cs git commit -m "removed alldiagnostics.cs" 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -