I always use git rebase to sync my code, I found that git stash saves the current work and after fetching the latest code from master we can merge it with our code by using git stash pop.
Suppose the sequence is:
git stash, i.e. my current work is savedgit checkout master, thengit pull master, i.e. I have fetched latest code from mastergit checkout mybranchgit stash pop
I guess this will merge my work with updated code, if instead of git stash pop I will do
git rebase master then the result will be the same or not?
Your suggestion and help will be appreciated, Thanks for your time.