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?

個人用Git関連備忘録

Posted at

はじめに

Git、GitHub関連の個人的備忘録です。
思いついたら追加していきます。

履歴から特定のファイルを削除する方法[作成2025/08/04_最終更新2025/08/04]

# example.fileを履歴から完全に削除
git filter-repo --path example.file --invert-paths

# リモートリポジトリがある場合は強制プッシュ
git push origin --force --all
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?