<dotfiles, Github> dotfilesを少しまとめてみた。

下記を参考にdotfilesを少しまとめてみた。

qiita.com

Githubへのコミットcommitとプッシュpush

cd ~/dotfiles
git init
git add .
git commit -m 'first commit'
git remote add origin https://github.com/your_name/dotfiles.git
git push origin master # type username & password

Githubからクローンclone

cd ~/
git clone https://github.com/your_name/dotfiles.git

更新update

git add .
git commit -m "anything"
git push origin master

リモートの更新を取り込む。

git pull <repository> <refspec>   # <repository>, <refspec>は省略可