while working on my feature branch, I found that someone made changes to the master branch. The feature branch which I'm currently working on needs to sync with the master branch. Tried to use git rebase, but it doesn't work (expected to see some file conflicts).
There are many modifications to the current feature files. Do I need to git add and commit (but don't git push) these modifications before git rebase?
git stash, I don't recommend it myself. It's a good idea in general to make a lot of small commits anyway; you can usegit rebase -ito organize them into more sensible, better commits later, as long as you haven't shared them with others yet.git fetch, then rungit rebase origin/master. You do not need a localmasterbranch at all!