使用git工具上传本地项目到github仓库

  1. 已经申请好github账号,在github上创建新的仓库
    使用git工具上传本地项目到github仓库
  2. 选中ej项目文件夹(里面是要上传的代码),右键选择Git Bash Here,出现下图。
    使用git工具上传本地项目到github仓库
  3. 初始化项目(项目里面已经有要上传的代码),变成本地仓库,如下图。命令:git init
    使用git工具上传本地项目到github仓库
  4. 将本地仓库与远程仓库绑定。命令:git remote add origin https://github.com/DDang-L/ej_manager.git
    使用git工具上传本地项目到github仓库
  5. 更新本地代码,将远程仓库代码更新到本地
    git pull origin master
    使用git工具上传本地项目到github仓库
  6. 添加本地项目到缓存,并添加注释
    使用git工具上传本地项目到github仓库
    git commit -m ‘提交代码的说明’
    使用git工具上传本地项目到github仓库
  7. 将缓存中的项目放到远程仓库中
    使用git工具上传本地项目到github仓库