Sublime Forum

Working with a bare repo (specifying git and work tree directories)

#1

I am following this setup to manage my dotfiles with git: https://www.atlassian.com/git/tutorials/dotfiles.

This implies creating a bare repo at $HOME. In order to manage this, git must be invoked like this:

git --git-dir=$HOME/.cfg/ --work-tree=$HOME

specifying the .git dir (which was set to .cfg in this case) and the work-tree.

Can sublime-merge be invoked like this, manually specifying the git dir and the work tree dir?

0 Likes