I have my current sublime-text-2 "Packages/User" folder in a git repo (on github)
How do I clone it into an existing folder "Application Support/Sublime Text 2" now that I am on a new computer?
Here is the repo:
http://github.com/andxyz/sublime-text-2-configs
Here is the existing folder on the new computer:
cd /Users/andxyz/Library/Application\ Support/Sublime\ Text\ 2/Packages/User
The following worked for me on an OSX mavericks 1.9.2 machine (after I got my github ssh clone stuff working) I did this:
git clone git@github.com:andxyz/sublime-text-2-configs.git ~/temp-sublime-text-2-configs
mv ~/temp-sublime-text-2-configs/.git ~/Library/Application\ Support/Sublime\ Text\ 2/.git
rm -rf ~/temp-sublime-text-2-configs
cd ~/Library/Application\ Support/Sublime\ Text\ 2/
git checkout --force master
The reasoning being that we can move the hidden .git
folder from our temp-repo into the existing folder. Then move to that folder and force a git checkout
with --force
.