0

I have sublime text 2 (st2) on 2 PC, but one of them is 32bit and the other is 64bit. My plan is to create a folder with st2 32bit and st2 64bit and then making the "data" folder shared between the 2 versions of st2. So the 32bit version "data" folder will be a symlink to the "data" folder from the 64bit version. So the folder will be:

  • Git repo root
    • Sublime text 2 32bit
    • data (symlink to Sublime text 2 64bit/data)
    • Sublime text 2 64bit
    • data

After that I would like to make it a git repo, the problem here is that symlinks doesn't work well with git?

Do you have a better plan/solution?

Why I do that?

  • I want to have the same config everywhere I go;
  • Is good to have source version control when something gets messed up in st2;

Thanks for your time

Totty.js
  • 14,848
  • 29
  • 100
  • 171
  • Git does support symlinks if the filesystem does. See: http://stackoverflow.com/questions/954560/what-does-git-do-to-files-that-are-a-symbolic-link – Philip Daniels Jun 02 '14 at 08:56
  • Yes, but I would not like to commit twice the same folder contents... I'm on win7-32bit and win8-1-64bit – Totty.js Jun 02 '14 at 09:34
  • Windows doesn't support symlinks. There are workarounds you can use for MSysGit and Cygwin but they are rather hacky and frankly more trouble than they are worth. I would a) try and point one of the SublimeText's data folders to the other folder: see if you can change it in the config options, or b) write a script to copy one folder to the other – Philip Daniels Jun 02 '14 at 10:53

0 Answers0