According to the Github for Mac blog announcement,
Once you\'re ready to share your commits, or pull in remote commits — just press the Sync Branch butto
Although @VonC’s answer is pretty darn useful, I wanted to mention of newer legit. Basically what legit does is a smart merge (much similar, if not equal, to what GitHub for Mac does):
git log --merges branch..from_branchmerge, otherwise do a rebasegit pull --rebase doesn’t work as per @VonC’s answer, whereas git rebase --preserve-merges is kinda better, but creates duplicate commits if you have merged other branches in; so you need to decide at some point if “rebase” is actually makes sense, or should you “merge” instead and that’s what legit does precisely (again: just like GitHub for Mac).