由于现在需要经常上传项目到github上,索性就讲命令行直接写在这里了,忘记了就回头看看。
create a new repository on the command line
//创建一个新的github项目,需要在github上先创建一个空的项目,然后才能上传
echo "# AsyncTaskDemo" >> README.md
git init
git add README.md
//或者git add .
git commit -m "first commit"
git remote add origin https://github.com/xiammu/AsyncTaskDemo.git
git push -u origin master
push an existing repository from the command line
git remote add origin https://github.com/xiammu/AsyncTaskDemo.git
git push -u origin master