I am getting the following when running
Your branch is ahead of 'origin/master' by 3 commits.
git pull --rebase
You get that message because you made changes in your local master and you didn't push them to remote. You have several ways to "solve" it and it normally depends on how your workflow looks like:
git push originassuming origin is your remote
git reset --hard origin/master