window10提交代码到码云

1.创建项目文件夹,例如创建一个"爬虫项目码云仓库"

 

2.进入项目文件夹,在地址栏输入cmd然后回车,这样就在该文件夹打开了终端

 

 3.终端输入git init初始化项目仓库,此时会产生一个隐藏的.git文件夹,相关的配置文件都在里面

4.配置用户名和邮箱

$ git config --global user.name "你的用户名"
$ git config --global user.email "你的邮箱(最好是注册码云的邮箱)"

5.将代码文件放在项目文件夹中

6.提交到到缓存区,'.'指将全部代码提交

$ git add .

7.提交更新,并注释信息

$ git commit-m '你的注释'

8.链接远程仓库

$ git remote add origin https://gitee.com/huangguoxin/MySpider.git

9.更新至码云

$ git push -u origin master

 

 

posted @ 2019-10-07 03:42  lattesea  阅读(302)  评论(0编辑  收藏  举报