利用Git命令上传本地项目到github
第一步:注册github账户(略).
第二步:安装Git
第三步:在github上新建与本地项目名一样的Repository.如下图:
第四步:鼠标右键点击本地项目,选 Git Bash Here
第五步:依次输入以下命令:
git init 敲完回车
git add . 敲完回车(注意 后面有一点,别丢了)
git commit -m "first commit" 敲完回车
git remote add origin https://github.com/{你的github账户名}/{你的项目名}.git 敲完回车
git push -u origin master 敲完回车
本地项目已上传到github,结束。