Our project has a develop branch. I created a bug-fix branch based on the develop branch, and changed one file a.java. And I know another people changed the a.java and merged to develop branch when I was fixing the bug.
Now I have fixed the bug, I want to merge my code to develop branch, but before I do that, I want to pull the changes(since other guy changed the a.java as well) to my local branch to test if it works, am I right? How can I do it?
Firstly I pulled all the code by 'git pull', and I am in my bug-fix branch. then run 'git merge develop', it output empty. Then I 'git merge origin/develop'.It output below errors.
Updating 46f689b..3011608
error: Your local changes to the following files would be overwritten by merge:
projectA/a.java
Please commit your changes or stash them before you merge.
Aborting
How can I merge the develop branch to my working directory?Thanks.