Shammer's Philosophy

My private adversaria

Move EmacsConfig from Dropbox to GIT

I use https://bitbucket.org/, and this is a procedure how to move EmacsConfig files to git repository of bitbucket.org from Dropbox.

  1. Create repository on bitbucket.org
  2. git clone https://$bitbucketUserName@bitbucket.org/$bitbucketUserName/$bitbucketRepositoryName.git
  3. cd $bitbucketRepositoryName
  4. echo "# ReadMe of $bitbucketRepositoryName" >> README.md
  5. git add README.md
  6. git commit -m "Initial commit with ReadMe"
  7. git push -u origin master
  8. cp -r $DropboxEmacsConfigDir .
  9. find . -name '*.el' -exec git add {} \;
  10. git commit -m "EmacsConfig files initial commit"
  11. git push -u origin master

New directory whose name is same as a repository name would be created when git clone command done. So I did above commands in $HOME/Workspace.
After above action done, change $HOME/.emacs.d symbolic link.

  1. cd
  2. rm .emacs.d
  3. ln -s Workspace/$bitbucketRepositoryName/ .emacs.d