Loading...
Loading...
Compare original and translation side by side
-mundefined-mundefined
**Never use these interactive commands:**
- `jj split` - inherently interactive, no non-interactive mode
**切勿使用以下交互命令:**
- `jj split` - 本质为交互模式,无对应非交互版本@@-@@-| Situation | Do This |
|---|---|
| Starting new work | |
| Forgot to start with jj new | |
| Work is done, move on | |
| Annotate what you did | |
| Broke something | |
| Undo one file | |
| Combine messy commits | |
| Try something risky | |
| 场景 | 操作方式 |
|---|---|
| 开始新工作 | |
| 忘记先执行jj new | |
| 工作完成,切换到下一个任务 | |
| 为已完成工作添加说明 | |
| 出现问题需要回滚 | |
| 撤销单个文件的变更 | |
| 合并零散的提交 | |
| 尝试有风险的变更 | |
undefinedundefined
**Why this matters:**
- `jj log` shows meaningful history while working
- Easier to understand what each change does
- Simpler to curate/squash later
- Teammates can follow progress
```bash
**为什么这很重要:**
- `jj log` 会显示有意义的工作历史
- 更容易理解每个变更的作用
- 后续整理/合并提交更简单
- 团队成员可以跟进进度
```bashundefinedundefinedundefinedundefined
**For feature branches (new):**
```bash
jj bookmark create feature-x -r @
jj git push --bookmark feature-x
**对于新的功能分支:**
```bash
jj bookmark create feature-x -r @
jj git push --bookmark feature-x
**For feature branches (updating):**
```bash
jj bookmark set feature-x -r @
jj git push
**对于已有的功能分支(更新):**
```bash
jj bookmark set feature-x -r @
jj git pushjj op log # See all operations
jj undo # Undo last operation
jj op restore <id> # Jump to any past statejj op log # 查看所有操作
jj undo # 撤销上一次操作
jj op restore <id> # 跳转到任意历史状态rm -rf .jj # Delete jj, keep git unchangedrm -rf .jj # 删除jj相关文件,保留git内容不变