使用git将本地项目上传至github
在github中创建一个仓库
创建好之后:
在仓库里已经有一些怎么连接git的语句,但是有时会出错,所以我总结了一套语句供大家参考:
# git初始化
git init
# 登录
git config -- global user.email "1111@qq.com"
git config -- global user.name "your name"
# 添加要长传的文件,这里是第一次上传,所以选择所有的文件
git add .
# git注解
git commit -m "本项目的初始上传"
# 连接git仓库
git remote add origin https://github.com/Fly97/movie.git
# 上传
git push origin master