将本地项目上传至github步骤:
登录github,点击右上角“+”号,选择“New repository”,填写仓库名称(自命名),其他默认,Create Repository。
打开项目所在目录,在搜索栏键入"cmd"进入命令行窗口
- git init
- git add *
- git status
- git commit -m “this is the first time to commit”
<–- git config --global user.email "2422761642@qq.com"
- git config --global user.name “lym-123”
–>
- git remote add origin https://github.com/lym-123/news.git
- git pull origin master
- git push origin master