0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

git push 反映されない 空コミット

Posted at

git push が反映されないないときの対処法1

  • 空コミットをローカルレポジトリで積み上げて、pushすることで、解決する場合がある。
  • コマンドライン
git commit --allow-empty
# コミットメッセージの入力
# 後ほど、このコミットは削除するため、適当に入力
git push
# pushが反映されたことを確認
git reset --hard HEAD~
git push --force

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?