Totoise Gitでコミット失敗して、プルして、そのあとコミットしても「更新するものがありません」言われるときがあります。
リモートとの差分状況を表す色も失敗したのになぜか緑になっている。

一度コミットを取り消ししてプルしてコミットするとうまくいきましたのでTortoise Gitでのコミット取り消しの手順について書きます。
Contents
①プロジェクトを右クリック→Tortoise Git→『ログを表示』

②『master』を右クリック

③masterをここへリセットをクリック


④Mixedにチェックを入れてOKをクリック(hardにするとファイルの変更が取り消されるので注意)

以上、Tortoise Gitでのコミットの取り消し方法になります。
『コミットしてプッシュ』を選択していたのでプッシュにだけ失敗していて、プルしたあとコミットせずにプッシュしていたらうまくいったかも。。。。
コメント