一、本地代码上传 github 命令
第一步
在github上建立对应仓库
第二步 本地建立Git库
第三步 复制代码 跟踪文件,将文件加到暂存区 查看状态
git add .
git status
第五步 提交到本地仓库
git commit -m "注释语句"
第六步 将本地仓库关联远程github
git remote add arigin "respository url"
第七步 上传代码
git push -u origin master
中间可能会让输入username,password
二、更新代码
1、进入本地库目录 查看状态 git status
2、更新文件
git add */某个文件名