Stashing
The key here is that you have uncommitted work that you want to save. Before trying to merge anything in, you should stash your changes to save your uncommitted changes and clean your working directory.
Run git stash
to stash your changes. You should then be able to pull the changes without any issues.
After you have successfully pulled, you can do a git stash apply
to re-apply the changes you had made prior to the pull.
Merging and rebasing
Stashing your changes only works if you only have uncommitted changes. If at some point you committed but didn't push you will need to either rebase or merge.
This StackOverflow post has some great information on the differences.
In general, merging is easier, but some believe that it "pollutes" the git history with merge commits.
Rebasing requires additional work, but since you don't have a merge commit it will essentially make the merge invisible.
Again, in your case you shouldn't need to merge or rebase. Simply stash, pull, then apply the stash and it should all be good.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…