The message "Your branch is ahead of 'origin/master' by 3 commits" means there are three commits in your local branch that have not been pushed to the remote repository, origin/master.
To push the commits to the remote repository, you would use:
git push origin master
This will update origin/master with your new commits; thereby both branches are synched. If you wish to avoid pushing those commits, or want to just simply remove them, then it's possible to use the reset or rebase method, but do that at your own risk because the last one will rewrite your commit history.