Linux command
yadm-enter 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Enter a sub-shell with yadm Git variables set
yadm enter
Run a specific command in the yadm context
yadm enter [command]
Run git log within the yadm worktree
yadm enter git log --oneline
说明
yadm enter opens a sub-shell with GIT_DIR and GIT_WORK_TREE environment variables set to the yadm repository. Exit the sub-shell the same way you leave your normal shell (usually with "exit"). This is useful for complex git operations on dotfiles, or for integrating with tools that use Git directly such as tig, vim-fugitive, or git-cola. Optionally, provide a command after "enter" and that command will be run with the yadm Git variables exposed in its environment, instead of invoking a sub-shell.
FAQ
What is the yadm-enter command used for?
yadm enter opens a sub-shell with GIT_DIR and GIT_WORK_TREE environment variables set to the yadm repository. Exit the sub-shell the same way you leave your normal shell (usually with "exit"). This is useful for complex git operations on dotfiles, or for integrating with tools that use Git directly such as tig, vim-fugitive, or git-cola. Optionally, provide a command after "enter" and that command will be run with the yadm Git variables exposed in its environment, instead of invoking a sub-shell.
How do I run a basic yadm-enter example?
Run `yadm enter` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more yadm-enter examples?
This page includes 3 examples for yadm-enter, plus related commands for nearby Linux tasks.