dsh-git-identity
Pin Git commits to the environment's own author identity; env-var injection overrides all `git config` settings.
git 提交固定使用环境自身作者身份,环境变量注入压过一切 `git config` 设置。
How to install
dsh plugin add github:LoserFox/dsh-git-identity About
git-identity DSH **profile bundle**(0812+ 的官方插件系统):让 DSH 内产生的所有 git 提交使用 环境自身的作者身份。优先读取 gh CLI 的登录账号(name 取 login,email 取 GitHub noreply 地址 <id>+<login>@users.noreply.github.com),其次启动环境的 GIT_AUTHOR_*、git config --global 兜底。 为什么需要它 DSH 的 agent 会话通过 bash 工具执行 git commit。历史上一旦某个会话显式 -c user.name="DSH Agent" 或改掉了 git 配置,后续提交就会带着错误的作者。 本插件在加载时把解析到的身份写入 GIT_AUTHOR_* / GIT_COMMITTER_* 四个环境变量, DSH 的 subprocess 层会把 process.env(剔除凭据)传给每个 bash 子进程,而 git 的 环境变量优先级高于一切 git config——所以 DSH 内任何路径发起的提交都必然使用该身份。 同时幂等同步回 git config --global,让插件进程外的普通终端提交也保持一致 (仅当 global 配置缺失或被改错时写回)。 安装(0812 profile bundle 系统) s…
Recommendation signals
Meta
- License
- –
- Language
- JavaScript
- GitHub stars
- 6
- mo. downloads
- –
- Last push
- 2026-08-13
- Created
- 2026-08-08
Links
Basic safety check
- Findings
- curated 收录但无 npm 包/安装命令;无 license
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- dsh-plugin
Related plugins
dsh-web
zhu1090093659/dsh-web-ui/tree/main/packages/dsh-git-graph
Git branch selector and Git graph for the dsh web GUI: switch branches and explore branch-lane and commit history from the conversation header.
dsh-web
zhu1090093659/dsh-web/tree/main/packages/dsh-git-graph
Git branch selector and Git graph for the dsh web GUI: switch branches and explore branch-lane and commit history from the conversation header.
dsh-github
PerryLink/dsh-github
Official-grade GitHub CI integration: a composite action.yml, a polling PR review bot with idempotent inline comments and a status-check gate, plus PR/issues tools with every write gated by human approval.
dsh-diff-approval
9087/dsh-diff-approval
Pending-change review for DeepSeek Harness: every `edit`, `write` and `str_replace_editor` change is collected automatically into the file list, where a single change block, the blocks within a selection, or the whole file can be kept or reverted, and undo/redo is supported. It imports the workspace's version-control changes, shows the diff in a single-column or side-by-side view, and provides a Markdown preview in which changes can also be kept or reverted, in-file search, block jumping and copyable line references; the diff data is stored persistently, so the review continues after a restart.