I created a branch called myBranch from master. Other colleagues have done so and merged their branches into master. So my branch is different from master now. How can I get the latest version of master into myBranch? I found on stackoverflow the answer is:
git checkout myBranch # gets you "on branch myBranch"
git fetch origin # gets you up to date with origin
git merge origin/master
I do not want to ruin the master branch and make a mistake. Would you please let me know if this is the right approach to get latest changes from master into mybranch?