git 上传文件到 gitee 码云远程仓库

一 , 想将码云仓库里面的代码,抓取下来 

    1.git remote add origin 地址

    2. git remote -v

    3. it pull  origin master

二 , 将自己创建的文件加入暂存区

    git add index.php

三 , 提交到本地,填写注释

    git commit -m 'index.php wenjian'

四 ,将文件上传到远程仓库,有两种方式

  1.git push origin master   

     2.git push -u origin master -f

猜你喜欢

转载自www.cnblogs.com/yunhubuxi/p/12335534.html