https://medium.com/@tvii/separate-git-dir-8426ff0537a6
https://stackoverflow.com/a/58259804
mkdir ~/the-separate-git-dir # local only synched via syncthing
mkdir ~/the-content-dir # synched via dropbox
cd ~/the-content-dir/
git init --separate-git-dir=../the-separate-git-dir
touch Readme.md
echo This is a work tree with just a .git file referring to the folder containing the .git repository folder > Readme.md
git add .
git commit -m 'add Readme.md'
for more see stackoverflow link