Jujutsu 指令笔记

Created at:
自用备忘指令小抄
这个 jujutsu Google 带上其他关键字搜索结果都是《咒術迴戰》,也是服了
brew install jj # 通过 homebrew 安装
jj config set --user user.email "your.email@example.com" # 设置邮箱
jj config set --user user.name "Your Name" # 设置用户名
jj config list --user # 检查用
jj git init --colocate .
jj file track . # 等同 git add .
jj commit -m "initial commit"
jj st # check status

jj git remote add origin git@github.com:xxxx/xxxx.git
jj bookmark create main -r @- # @是当前,@-是上个提交
# jj 没有分支概念,只有 bookmark
jj git push --remote origin --bookmark main # 推送 bookmark 到 origin