4 ms·
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 orig
by jarcane 11y ago
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 ...
- cheez 11y agoThat'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.
- saltycraig 11y agoI like to use: git push -u origin master So then the next time all I need to do is: git push
- sethish 11y agoThat 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.