Skip to content

Instantly share code, notes, and snippets.

@hymkor
Last active August 18, 2025 16:40
Show Gist options
  • Save hymkor/56b029788f6fc34d394b5b86c2750c1d to your computer and use it in GitHub Desktop.
Save hymkor/56b029788f6fc34d394b5b86c2750c1d to your computer and use it in GitHub Desktop.
jj コマンドで意図せず現在のコミットに追加されてしまったファイルをすべて jj fille untrack するバッチファイル(これを行う前に .gitignore や .git/info/exclude などで対象外にしておくこと)
@jj st | goawk "/^A /{ system(sprintf('jj file untrack \"\x27%%s\x27\"',substr($0,3))) }"
@exit /b 0
gist https://gist.github.com/hymkor/56b029788f6fc34d394b5b86c2750c1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment