从本地上传项目到github上

来源:互联网 发布:linux发送邮件超时 编辑:程序博客网 时间:2024/04/28 14:40

由于现在需要经常上传项目到github上,索性就讲命令行直接写在这里了,忘记了就回头看看。

create a new repository on the command line//创建一个新的github项目,需要在github上先创建一个空的项目,然后才能上传echo "# AsyncTaskDemo" >> README.mdgit initgit add README.md//或者git add .git commit -m "first commit"git remote add origin https://github.com/xiammu/AsyncTaskDemo.gitgit push -u origin masterpush an existing repository from the command linegit remote add origin https://github.com/xiammu/AsyncTaskDemo.gitgit push -u origin master




0 0
原创粉丝点击