1. [github] Create github account
2.[github] Create repo
3.[local] register user info
$git config --global user.email "you@example.com"
$git config --global user.name "Your Name"
4. copy ssh publickey and paste it on github account
[github] user-setting-SSH and GPG key-New SSH Keys
5.[local] git init
$echo "# capstone" >> README.md
$git init
$git add README.md
$git commit -m "first commit"
6. Add origin
$git remote add origin git@github.com:JasonGrayHat/reponame.git $git remote -v
7.Regular commands
$git add filename $git commit -m "comments" $git push origin master $git pull origin master
8.(optional for co-working) forking/fetching
$git remote add upstream git@github.com:JasonGrayHat/capstone.git
$git fetch upstream
$git merge upstream/master