Skip to content

Conversation

@rockyzhang24
Copy link
Contributor

Closes #84

Solution:

Change git -C to git --git-dir /path/to/gitdir --work-tree /path/to/worktree. gitdir is the directory containing .git or the value of $GIT_DIR env. worktree is the value of $GIT_WORK_TREE env or the parent directory of gitdir.

I've been using git bare repo to manage my dot files for years and it works very well in my bare repo.

Test:

Screenshot 2025-05-17 at 20 33 38

...

Screenshot 2025-05-17 at 20 33 46

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doesn't work on worktrees

1 participant