今日、私は の を発見し--no-edit
ました--amend
。しかし、それは私を次の問題に導きます。手順は次のとおりです。
- gitクローン
- コードにいくつかの変更を加えました
- git add .
- git commit --amend --no-edit
git push オリジンマスター
! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://me@bitbucket.org/myRepo.git' 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.
なんで?
注: そのレポで作業しているのは私だけです。