学习写代码呀

导航

git提交项目到github

一、github上创建空项目,clone到本地,增加文件夹到项目下,然后提交。

git clone https://github.com...git

git add .

git commit -m "注释"

git push -u origin master

二、本地文件夹新增.git文件,成为git项目。使用ssh key方式提交项目到github

git init

git add .

git commit -m "..."

原文链接:https://www.cnblogs.com/du-hong/p/9921214.html

posted on 2020-03-23 14:03  学习写代码呀  阅读(139)  评论(0编辑  收藏  举报