怎么把本地项目上传到github
把已存在的项目文件夹整个上传到github,使用git命令的方式【记录一下】
安装Git
官方版本可以在 Git 官方网站下载 https://git-scm.com/download/win
安装完毕后进入一个文件夹,右键出现Git GUI Here Git Bash Here
创建GitHub项目
登录自己github>右侧头像>下三角>Your repositories
New >> 填写Repository name >> 页面下方点击Create repository
空项目建好,复制地址 https://github.com/xxx/yyy.git
上传文件
进入自己的项目源码根目录,或其他待上传文件夹目录下
右键>Git Bash Here
git init
git add . #不要漏写“.”。
git commit -m "init commit"
git remote add origin https://github.com/xxx/yyy.git
git push -u origin master
刷新github页面查看
作者:朝朝mumu
链接:https://juejin.cn/post/6844903937695301645
来源:稀土掘金
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
评论
发表评论