LoginSignup
4
4

More than 5 years have passed since last update.

Git記法チートシート

Posted at

調べたコマンドメモ。主に自分用です

履歴ごとファイル削除

git filter-branch --tree-filter "rm -f [消したいファイルパス]" HEAD
git gc --aggressive --prune=now
git push -f -u origin branch-name

[ref] Git リポジトリに上がっているファイルを履歴ごと消すには?

4
4
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
4
4