美文网首页
上传本地项目到github

上传本地项目到github

作者: Eazow | 来源:发表于2018-12-20 17:10 被阅读15次
1. 比如已有项目test, 在test文件夹初始化仓库
cd test
git init
2. 在github.com上创建一个仓库test
3. 提交项目文件
echo "# test" >> README.md
git add .
git commit -m "first commit"
git remote add origin git@github.com:xxx/test.git
git push -u origin master

相关文章

网友评论

      本文标题:上传本地项目到github

      本文链接:https://www.haomeiwen.com/subject/hfxukqtx.html