0

After performing: git pull origin master

I get the following:

* branch            master     -> FETCH_HEAD
error: The following untracked working tree files would be overwritten by merge:
.gitignore
Please move or remove them before you merge.

Aborting

How can I continue ?

CodeWizard
  • 128,036
  • 21
  • 144
  • 167
hannit cohen
  • 350
  • 1
  • 4
  • 11
  • Possible duplicate of [How do I force "git pull" to overwrite local files?](https://stackoverflow.com/questions/1125968/how-do-i-force-git-pull-to-overwrite-local-files) – phd Dec 09 '18 at 11:44
  • https://stackoverflow.com/search?q=%5Bgit%5D+pull+error%3A+The+following+untracked+working+tree+files+would+be+overwritten+by+merge – phd Dec 09 '18 at 11:44

1 Answers1

1

The output telling you that you have uncommitted changes.

You can do one of the following:

To add & commit your changes:

# Add and commit changes
git add . && git commit -m"Message"

To discard changes:

# discard your changes
git checkout -- .gitignore
CodeWizard
  • 128,036
  • 21
  • 144
  • 167