Skip to content

Instantly share code, notes, and snippets.

@hymkor
Created March 2, 2026 09:07
Show Gist options
  • Select an option

  • Save hymkor/853bda053fbd5b200f21d0f0228bb58d to your computer and use it in GitHub Desktop.

Select an option

Save hymkor/853bda053fbd5b200f21d0f0228bb58d to your computer and use it in GitHub Desktop.
jujutsu 向けの PowerShell tools

jujutsu 向けの PowerShell tools

  • shiftbk.ps1
    jj bookmark move ブックマーク名 -t リビジョン でブックマーク名の転記が面倒くさいので書いた、自動で直近のものを探して移動させてくれる PowerShell スクリプト(実行前の目視確認あり)。結構、使う
  • new-jj.ps1
    1. jj git init
    2. * -text という1行だけの .gitattributes を作成する
    3. *~, *.o, *.exe, __*, *.zip, dist などを .git/info/exclude に追加
  • jj-describe.ps1
    git describe --tags と同じようなことを jj でやる実験用 PowerShell Script。普通に git describe --tags を実行した方が早い
  • untrack.ps1
    jj-vcs/jj で意図せず「追加扱い」にされたすべてのファイルに対して、jj file untrack を実行する PowerShell スクリプト(事前に .gitignore などの編集が必要)
    • untrack.cmd (要goawk)
      jj コマンドで意図せず現在のコミットに追加されてしまったファイルをすべて jj fille untrack するバッチファイル(これを行う前に .gitignore や .git/info/exclude などで対象外にしておくこと)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment