把已存在的项目文件夹整个上传到github,使用git命令的方式【记录一下】
安装Git
- 官方版本可以在 Git 官方网站下载【 git-scm.com/download/wi…
- 安装完毕后进入一个文件夹,右键出现
Git GUI HereGit Bash Here
创建GitHub项目
- 登录自己github>右侧头像>下三角>Your repositories
- New >> 填写Repository name >> 页面下方点击Create repository
- 空项目建好,复制地址
https://github.com/xxx/yyy.git
上传文件
- 进入自己的项目源码根目录,或其他待上传文件夹目录下
- 右键>
Git Bash Here git initgit add .#不要漏写“.”。git commit -m "init commit"git remote add origin https://github.com/xxx/yyy.gitgit push -u origin master