git往已有的空仓库推送代码

1、git clone 仓库地址

2、进入克隆下的文件夹

 

3、往文件夹添加要推送的代码

 4、git add .                                 //将文件保存到缓存区

 

5、使用git commit -m '新添加的文件内容描述'      //添加文件描述

 6、使用git push origin master ,将本地仓库推送到远程仓库

猜你喜欢

转载自blog.csdn.net/qq_34301282/article/details/120013456