I have a cloned project from a master branch from remote repository remote_repo. I create a new branch and I commit to that branch. Other programmers pushed to
remote_repo
git fetch origin master:master pulls the latest version of master without needing to check it out.
git fetch origin master:master
So all you need is:
git fetch origin master:master && git rebase master