Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  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's not web scale /s

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.


I like to use:

    git push -u origin master
So then the next time all I need to do is:

    git push


That depends on your git.push settings. I have it set to current, which means `git push` pushes the current branch to only an origin branch of the same name.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: