devsync cd
Launch a shell inside the sync repository directory.
Synopsis
Section titled “Synopsis”devsync cdDescription
Section titled “Description”devsync cd spawns a child shell with its working directory set to ~/.config/devsync/sync/ — the sync repository. This gives you direct access to the git repository that stores your dotfile artifacts.
From inside this shell you can run any git command: git status, git log, git add, git commit, git push, git pull, and so on. When you are done, type exit or press Ctrl-D to close the child shell and return to your original session.
The child shell inherits your current environment, including $SHELL, $PATH, and any shell configuration. If your default shell is zsh, the child shell will also be zsh.
Examples
Section titled “Examples”# Open the sync directory in a shelldevsync cd
# You are now inside ~/.config/devsync/sync/git statusgit add -Agit commit -m "update dotfiles"git push origin main
# Return to your original shellexitTypical use cases
Section titled “Typical use cases”- Commit and push after
devsync push: devsync does not create git commits automatically. Usedevsync cdto commit and push once you have updated the repository withdevsync push. - Pull from remote before
devsync pull: Rungit pullinside the sync directory to fetch the latest commits from the remote, then exit and rundevsync pullto apply them locally. - Inspect history: Use
git logorgit diffto review what changed between syncs. - Resolve conflicts: If git reports merge conflicts in the sync repository, resolve them here.