・ローカルのVersion確認
Short Version コミット名
git log --oneline
例:306e968 (HEAD -> develop, origin/develop) sync all controlled files
3366cf8 sn-458
Long Version コミット名
git log
・resetはそのコミットまでに戻る
revert そのコミットが削除
参照:https://zenn.dev/nekoniki/articles/f238efa56eb869
例: git reset --hard 3366cf8
・強制リモートのreset (-f)
git push origin develop -f
・今のブランチの更新をクリアする
まず、直近にreset
git reset --hard
あと、クッリンする
git clean -fxd
・gitにPush
git push origin develop
※ローカルBranch名とリモートBranch名が不一致の場合、
git push origin localBranch:remoteBranch