GIT提交本地文件

下载GITHUB客户端,地址如下:

https://desktop.github.com/

使用方法:

1、首先进入要提交的文件的文件夹下(采用CD指令)

cd C:/Users/Ronaldo/Downloads/SDK7v.1

2、初始化Git(创建GIT与本地文件的关联)

git init

3、把文件加下文件加入Git缓存区

git add .(.点表示全部加入)

4、将索引内容加入仓库

git commit -m "提交文件"

5、捆绑远程仓库

git remote add origin (远程仓库的SSH)

6、最后正式提交

git push -u origin master

注意:

捆绑远程仓库是提示已经存在时,

采用如下命令删除已经存在的内容。

git remote rm origin

猜你喜欢

转载自www.cnblogs.com/achao123456/p/9178217.html