git pull --rebase. Unlike the other solution, you don't need to know the name of your destination branch. If your upstream branch is not set, try git pull origin <branch> --rebase (credit to @Rick in the comments)