Loading...
Loading...
Compare original and translation side by side
xitgit.xit/xitgit.xit/xit--clistatusdiffdiff-addedlogxit configxit config list|add|rm ...--clixit <cmd> --helpxitstatusdiffdiff-addedlog--clixit configxit config list|add|rm ...--clixit <cmd> --helpxitcommand -v xitxitgitxit status --cli.xit/xitcommand -v xitxitgitxit status --cli.xit/| Intent | xit | Notes |
|---|---|---|
| status | | Text output for agents. |
| diff (working tree) | | Changes not added to index. |
| diff --cached | | Index vs last commit. |
| add / stage | | Stage file contents. |
| unstage | | Like |
| restore (work dir) | | Discard local changes for a path. |
| rm --cached | | Stop tracking but keep the file. |
| rm | | Stop tracking and delete the file. |
| commit | | Use a quoted message. |
| log | | Text output for agents. |
| branch list / create / delete | | |
| switch / checkout | | Updates index + working dir. |
| merge | | Patch-based merge by default. |
| cherry-pick | | Apply an existing commit. |
references/cli.md| 操作意图 | xit命令 | 说明 |
|---|---|---|
| 查看状态 | | 适合Agent的文本输出格式。 |
| 查看工作区差异 | | 未暂存的更改。 |
| 查看暂存区与提交差异 | | 暂存区与最新提交的差异。 |
| 暂存文件 | | 暂存文件内容。 |
| 取消暂存 | | 类似 |
| 恢复工作区文件 | | 丢弃指定路径的本地更改。 |
| 停止追踪文件但保留本地文件 | | 停止追踪但保留文件。 |
| 删除文件并停止追踪 | | 停止追踪并删除文件。 |
| 提交 | | 使用带引号的提交信息。 |
| 查看提交日志 | | 适合Agent的文本输出格式。 |
| 分支列表/创建/删除 | | |
| 切换分支/检出 | | 更新暂存区和工作区。 |
| 合并 | | 默认基于补丁的合并。 |
| 樱桃拣选 | | 应用已有的提交。 |
references/cli.mdxit status --clixit diff --clixit diff-added --clixit status --clixit diff --clixit diff-added --clixit status --clixit diff --clixit add <paths...>xit diff-added --clixit commit -m "<message>"xit status --clixit diff --clixit add <paths...>xit diff-added --clixit commit -m "<message>"xit merge <branch-or-oid>xit cherry-pick <oid>xit status --clixit diff --clixit add <resolved-paths...>xit diff-added --clixit merge --continuexit cherry-pick --continuexit merge --abortxit cherry-pick --abortxit merge <branch-or-oid>xit cherry-pick <oid>xit status --clixit diff --clixit add <resolved-paths...>xit diff-added --clixit merge --continuexit cherry-pick --continuexit merge --abortxit cherry-pick --abortxit reset <ref-or-oid>git reset --mixedxit reset-dir <ref-or-oid>git reset --hardxit reset-add <ref-or-oid>git reset --softxit reset <ref-or-oid>git reset --mixedxit reset-dir <ref-or-oid>git reset --hardxit reset-add <ref-or-oid>git reset --softxit remote add|rm|list ...xit fetch <remote>xit merge refs/remotes/<remote>/<branch><branch>xit log --clixit push <remote> <branch>xit remote add|rm|list ...xit fetch <remote>xit merge refs/remotes/<remote>/<branch>xit log --cli<branch>xit push <remote> <branch>xit rm <path>xit restore <path>xit reset-dir <ref-or-oid>xit push ... -fxit push <remote> :<branch>xit untrack <path>git.xitxit rm <path>xit restore <path>xit reset-dir <ref-or-oid>xit push ... -fxit push <remote> :<branch>xit untrack <path>.xitgitxit --helpxit <cmd> --helpxit --helpxit <cmd> --helpxit patch on|off|allxit patch on|off|all