So I just now found this out but git since 2.5 (july 2015 ) has a command that allows you to just make a new working tree and that tree will be linked to the master repo you used the command in.
(From root of current working tree)
Code: Select all
git worktree add ../tgstation2
And also it's all linked to the same repo with the same refs (except HEAD and a few others i think). The commands you call are not being called on a cloned repo that is synced with the main repo, but the main repo itself, no hacky workaround methods used.
More info here: https://git-scm.com/docs/git-worktree
I really am very happy I found this and wish I found it way earlier.