エラー「Updates were rejected because the remote 〜」が吐き出される

ec2-user:~/environment/dev.wedewlawns.com (master) $ git add .
ec2-user:~/environment/dev.wedewlawns.com (master) $ git commit -m 'xxxxxxxxxx'
[master 0d3d66f] Edit construct on SubscriptionController
 2 files changed, 22 insertions(+), 16 deletions(-)
ec2-user:~/environment/dev.wedewlawns.com (master) $ git push -u origin master

いつものようにGithubへpushしようとするとこんなエラーが。

 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/hirakumorishima02/laravel-stripe-E-commerce.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

解決策は以下のコマンドを入力することです。

$ git pull origin master