10 step git dotfiles

$ mkdir ~/.dotfiles $ git init --bare $HOME/.dotfiles $ echo $'alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"' >> ~/.bashrc $ source ~/.bashrc $ dotfiles config status.showUntrackedFiles no # create empty repo https://github.com/user/repo.git $ dotfiles remote add origin https://github.com/user/repo.git $ dotfiles add ~/.bashrc $ dotfiles commit -m "first commit" $ dotfiles status $ dotfiles push -u origin master # dotfiles pull #ecc.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.