更新上传到github的代码

更新代码

第一步:查看当前的git仓库状态,可以使用git status

git status

第二步:更新全部

git add *

第三步:接着输入git commit -m "更新说明"

git commit -m "更新说明"

第四步:先git pull,拉取当前分支最新代码

git pull

第五步:push到远程master分支上

git push origin master

不出意外,打开GitHub已经同步了

上一篇:关于组件命名规范以及不规范遇到的控制台报错信息:did you register the component correctly? For recursive components, make sure to provide the "name" option.


下一篇:git无法pull仓库refusingtomergeunrelatedhistories