如何将我的git repo of sublime-text-2设置克隆到另一台计算机

and*_*xyz 5 git github user-preferences sublimetext2

我在git repo中有我当前的sublime-text-2"Packages/User"文件夹(在github上)

现在我在新计算机上,如何将其克隆到现有文件夹"Application Support/Sublime Text 2"?

这是回购:http:
//github.com/andxyz/sublime-text-2-configs

这是新计算机上的现有文件夹:

cd /Users/andxyz/Library/Application\ Support/Sublime\ Text\ 2/Packages/User
Run Code Online (Sandbox Code Playgroud)

and*_*xyz 5

以下是在OSX mavericks 1.9.2机器上为我工作(在我的github ssh克隆工作之后我工作了)我这样做了:

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
Run Code Online (Sandbox Code Playgroud)

原因是我们可以将隐藏.git文件夹从temp-repo移动到现有文件夹中.然后移动到该文件夹​​并强制git checkout使用--force.