Fixed There was a problem with the editor 'vi'
在用git提交的时候 如果不小心打错了commit -m 'xxx' xxx里面的内容的话,可以修改,命令是git commit --amend
apple:yunlu_meeting apple$ git commit -m 'delete redu'
//这时候发现打字还没打完 电脑卡了手贱 多按了回车,郁闷,于是再一次修改提交信息
apple:yunlu_meeting apple$ git commit --amend
//WTF,`Vi`编辑器遇到问题,
error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.
复制代码
解决方法是
$ git config --global core.editor /usr/bin/vim -f
复制代码
完整的终端打印如下:
apple:yunlu_meeting apple$ git commit --amend
error: There was a problem with the editor 'vi'.
Please supply the message using either -m or -F option.
apple:yunlu_meeting apple$ git config --global core.editor /usr/bin/vim -f
apple:yunlu_meeting apple$ git commit --amend
[addChat e38cfe4] delete redundant key-values in HBuilder-Hello-Info.plistDate: Sat Oct 8 17:48:46 2016 +0800
apple:yunlu_meeting apple$ git push origin addChat:addChat
Counting objects: 198, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (114/114), done.
复制代码
转载于:https://juejin.im/post/5c19f802f265da612c5dd580
Fixed There was a problem with the editor 'vi'相关推荐
- Kubernetes--k8s---进阶--管理工具helm--helm全面介绍
简介 Helm is the best way to find,share,and use software built for Kubernetes. Helm号称 构建k8s运行的软件 最好的一种 ...
- Git追加本次提交到上次提交
Git 追加提交到上次提交 命令 Q&A 命令 有时候为了减少提交日志,并且添加的内容是与上次的内容属于同一个提交内容的,为了好维护,会将本次的提交追加到上次的提交中.使用git 命令如下: ...
- 【Power Query M】Get your own Power Query Editor using Notepad++
文章来源于:https://ssbi-blog.de/technical-topics-english/power-query-editor-using-notepad/ Preface This p ...
- nslang oracle_RAC11g+DG 高可用容灾方案部署
在写本博文之前,详细阅读了dave大神的博客http://blog.csdn.net/tianlesoftware/article/details/8212349,得到很多启发. 软件环境 prise ...
- Git在windows下的安装和使用GIT@OSC
Git是一个版本控制工具Github是一个用git做版本控制的项目托管平台.Git和GitHub一直以为是两个差不多的东西,但是具体是哪些差异还真没去了解过,现在Git也托管到了GitHub,都怪自己 ...
- Windows源代码泄露全景报道[转]
作者: 熊建国 罗景文 出处: 程序员 责任编辑: 方舟 [ 2004-04-16 12:56 ] 以下这段代码是否似曾相识?:) /*W$最高机密-Miuqoms 98 源代码*/ ---- whi ...
- nvidia显卡 linux,Ubuntu下安装最新的Nvidia显卡驱动
今天上网发现了Ubuntu下Nvidia的最新驱动169.7,以下是新的特性:(英文) Linux x64 (AMD64/EM64T) Display Driver Version: 169.07 O ...
- 《软件设计的哲学》(十五)【选择的名字】
第 14 章 选择的名字 Chapter 14 Choosing Names Selecting names for variables, methods, and other entities is ...
- 虚幻引擎 4.14 版发布!
Share on Facebook Share on Twitter Share on Google+ Share on LinkedIn 此版包含 Epic 的数百项更新,以及 GitHub 虚幻引 ...
最新文章
- 7 自动开启网卡_淘汰的旧手机别扔掉,这样设置变身4G上网卡
- 关于BCH交易规范排序(CTOR)的优缺
- Composer 安装(一)
- python广告搞笑_技术入门 | 听说Python的广告刷爆了你的朋友圈?
- Winform中设置ZedGraph的坐标轴的标题和刻度不显示十次幂
- 短url服务java_Serverless-实现一个短网址服务(二)
- 【ArcGIS遇上Python】ArcGIS Python实现Modis NDVI批量求年最大值
- java gc时自动收dump_Full GC分析:设置Java VM参数实现在Full GC前后自动生成Dump
- 瞧瞧苹果OS X如何干掉Linux
- 图神经网络(GNN)教程 – 用 PyTorch 和 PyTorch Geometric 实现 Graph Neural Networks
- 微软发布IoT应用现状报告:88%国内企业已使用IoT;技术人才仍为最大需求;三分之一企业死于构想阶段...
- BZOJ1579 USACO 2009 Feb Gold 3.Revamping Trails Solution
- 如何优雅的对列表接口进行分页?
- 设计模式解密(7)- 代理模式
- Linux时间子系统之七:定时器的应用--msleep(),hrtimer_nanosleep()
- 基于Springboot+MYSQL实现在线点餐系统源码
- 大麦DW33D路由器假死
- 年龄血压对照表,每人都应该存一份!
- 如何科学进行用户分析?六大方法论了解一下!
- Windows bat脚本获取administrator权限