通过git命令“六步”提交新项目到码云

通过git命令“六步”提交新项目到码云

一、初始化本地仓库

git init

二、添加文件

git add .

三、添加远程数据仓库链接

git remote add origin https://gitee.com/chenzheng8975/FyWisdom.git

四、从远程仓库拉取代码

git pull origin master --allow-unrelated-histories

五、提交到本地仓库

git commit -m "init commit"

六、提交代码到远程仓库

git push -u origin master -f

猜你喜欢

转载自www.cnblogs.com/chenzheng8975/p/10648461.html