1.创建ssh-key 并添加到自己的github账户中。这个过程使得github认得你的电脑,并授权给你的电脑提交的权利。
ssh-keygen -t rsa -C "your-email-address"
vim .ssh/id_rsa.pub
2.test ssh-key
ssh -T git@github.com
3.create a new repository on the command line
cd opencv_demo
echo "# opencv_demo" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:your_user_name/opencv_demo.git
git push -u origin master