cd ~/.emacs.d
git init
git add .
git commit -m "My emacs config"
git remote add origin http://github.com/myname/myemacsd
git remote -v
git push origin master
Just sayin' is all ... cd ~/.emacs.d
git init
git add .
git commit -m "My emacs config"
git remote add origin http://github.com/myname/myemacsd
git remote -v
git push origin master
Just sayin' is all ...That being said, because I use a different OS every week, I have found this to not work as well as I'd like because I often forget to commit/push after a change.
Since I'm always committing/pushing, it seems to me like keeping ~/.emacs.d in Dropbox is the better solution.
git push -u origin master
So then the next time all I need to do is: git push