本地项目上传到码云

2020-04-01  本文已影响0人  落落落落落跑

git Bash

git init  初始化  git

git remote add origin https://gitee.com/你的码云上的名子/码云上你创建对应仓库的名字。

在cmd 中输入git add . 命令函,敲回车键(Enter)(add与.之间有个空格),主要的作用是把所有的文件保存到缓存区

git commit -m ‘xxxx’  xxxx为描述

git pull --rebase origin master   主要的作用是更新项目,避免与远程的仓库的代码起冲突

git push origin master 

上一篇 下一篇

猜你喜欢

热点阅读