Step 1
Create dotfiles dir in my linux notebook, as the most recent configs reside there
benoror@gateway:~$ mkdir ~/dotfilesbenoror@gateway:~$ mkdir ~/dotfilesbenoror@gateway:~$ mv .bashrc ~/dotfiles/benoror@gateway:~$ mv .vimrc ~/dotfiles/benoror@gateway:~$ mv .vim ~/dotfiles/(... ... ...)benoror@gateway:~$ mv .ssh ~/dotfiles/
Step 2
Link those files back to my home dir
benoror@gateway:~$ ls -Ad /dotfiles/ | xargs -I _ ln -s _
Step 3
Create a neat readme file and make git ignore those sensitive files!
benoror@gateway:~/dotfiles/$ echo "Welcome to my public dotfiles" > READMEbenoror@gateway:~/dotfiles/$ echo ".secret" >> .gitignore(...)benoror@gateway:~/dotfiles/$ echo ".ssh/*" >> .gitignore
Step 4
Download Git and confiigure it
benoror@gateway:~/dotfiles/$ git config --global user.name "Benji Orozco" benoror@gateway:~/dotfiles/$ git config --global user.email benoror@gmail.com
Step 5
Sign-up at GitHub, and create a repo called 'dotfiles'. Follow the instructions to include your dsa-key, it's straight forward. Then create the repo locally and push it to your github:
benoror@gateway:~/dotfiles/$ git init benoror@gateway:~/dotfiles/$ git add .benoror@gateway:~/dotfiles/$ git status
benoror@gateway:~/dotfiles/$ git commit -a -m 'first commit'benoror@gateway:~/dotfiles/$ git remote add origin git@github.com:benoror/dotfiles.git benoror@gateway:~/dotfiles/$ git push origin master
That's It
Next article: Cloning Git Repos and mixing them with Dropbox