Last active
August 18, 2025 16:40
-
-
Save hymkor/56b029788f6fc34d394b5b86c2750c1d to your computer and use it in GitHub Desktop.
jj コマンドで意図せず現在のコミットに追加されてしまったファイルをすべて jj fille untrack するバッチファイル(これを行う前に .gitignore や .git/info/exclude などで対象外にしておくこと)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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