git push
コマンドを実行すると下記のエラーが発生します。 ! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'http://(サーバーのリポジトリURL)'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
git pull
git fetch
git merge master
git reset
コマンドなどを実行した後で、リモートリポジトリでは管理対象になっており、ローカルリポジトリでは管理対象外であるファイルが存在している場合、
上記のエラーが発生します。管理対象外になったファイルをローカルのディレクトリから削除します。