Generally whenever i want to push in the changes to remote Git i follow thee steps:
git stash
git pull
git stash pop
//Resolve conflicts if any
git push
However i have also seen my teammates doing the following:
git pull --rebase
//Resolve conflicts if any
git push
I just want to know is there anything beneficial over one another. Or even if there is any other approach that is good.