error: switch `m' requires a value

编程入门 行业动态 更新时间:2024-10-06 14:37:59

<a href=https://www.elefans.com/category/jswz/34/1771302.html style=error: switch `m' requires a value"/>

error: switch `m' requires a value

error: switch `m' requires a value 

错误:开关“m”需要一个值

 

解决方法:

输入 git status 后会出现以下

On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 2 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)

意思是(使用“git pull”将远程分支合并到您的分支中)


All conflicts fixed but you are still merging.
  (use "git commit" to conclude merge)

意思是(使用“git commit”结束合并)

 

Changes to be committed:

        modified:   index.html

Changes not staged for commit:


  (use "git add <file>..." to update what will be committed)

  意思是(使用“git add<file>…”更新将提交的内容)


  (use "git checkout -- <file>..." to discard changes in working directory)

  意思是(使用“git checkout——<file>…”放弃工作目录中的更改)

        modified:   index.html

我的解决方案是 git add index.html

结束合并 git commit -m "modify"

把服务器代码拉下来跟你本地代码合并  git pull

把合并好的最新代码推送到服务器端     git push​​​​​​​

2019.7.11

更多推荐

error: switch `m' requires a value

本文发布于:2024-02-13 11:38:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1758863.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:error   switch   requires

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!