I am tracking my dotfiles by using this approach. This is very useful method to track files which are in different locations.
Short summary of the blog.
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' dotfiles add newfile dotfiles commit -am "add new file" etc..
Since it's bash alias, I couldn't fınd the way to integrate this function with magit.
How I can use magit graphical interface like
dotfiles-magit-status and look for changed files for this repository?
Kind of function like
M-x dotfiles-magit-status is accepted.
Links same approach: