V
V
Verg1l2015-01-21 17:38:01
git
Verg1l, 2015-01-21 17:38:01

How to download modified files from a repository (that another user has modified and uploaded to the repository) git?

$ git pull
Updating c1f1857..e4945cb
error: Your local changes to the following files would be overwritten by merge:
workspace/test/src/test/test.java
Please, commit your changes or stash them before you can merge.
Aborting

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2015-01-21
@Verg1l

first you need to commit or put your changes in stash
at all if you don't want to mess around
git reset --hard HEAD
git pull
but this will remove the current local changes that have not been committed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question