使用git上传本地文件到github

准备工作

下载git

注册github账号

上传步骤

1.进入github首页,点击New repository新建一个项目

2.点击Clone or download会出现地址,复制此地址。

3.右键要上传的项目,Git Bash Here。

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

5.将项目中新产生的文件复制到项目下

使用以下命令提交

git add .

git commit -m "提交信息"

git push -u origin master

猜你喜欢

转载自blog.csdn.net/qq_35557878/article/details/88657145