Git commit报错

Git commit的时候出现如下错`

C:/Program Files (x86)/Git/bin/vim: -c: line 0: syntax error near unexpected token `(‘
C:/Program Files (x86)/Git/bin/vim: -c: line 0: `C:/Program Files (x86)/Git/bin/vim \[email protected]\‘
error: There was a problem with the editor ‘C:/Program Files (x86)/Git/bin/vim‘.
Please supply the message using either -m or -F option.

这是因为 git commit 后会默认找 C:/Program Files (x86)/Git/bin/vim 用这个来作为message的编辑器,但是没找打到或别的原因

处理

1: 可以使用 git commit -m "message" 直接设置提交message

2: 或在项目目录下git config core.editor vim来设置git message 代开的编辑器

时间: 2024-10-09 01:57:00

Git commit报错的相关文章

git push 报错:failed to push some refs to '[email protected]:devops/thor.git'

error: failed to push some refs to '[email protected]:devops/thor.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing

<问题解决02>Linux虚拟机使用git push报错--解决方案如下:

问题描述: 使用git push 报错: error: The requested URL returned error: 403 Forbidden while accessing https://github.com/Newlyfly/Hello_World.git/info/refs fatal: HTTP request failed 解决方案: 解决方案来源博客地址:http://blog.csdn.net/happyteafriends/article/details/1155404

git push报错error: failed to push some refs to '[email protected]:

$ git push -u origin master To [email protected]:xxx/xxx.git ! [rejected] master -> master (fetch first) error: failed to push some refs to '[email protected]:xxx/xxx.git' hint: Updates were rejected because the remote contains work that you do hint:

git checkout 报错 refname 'origin/branch-name' is ambiguous

When this happened, it created the file .git/refs/heads/origin/branch-name. So, I just deleted the file. 执行 rm .git/refs/heads/origin/分支名 再checkout git checkout 报错 refname 'origin/branch-name' is ambiguous 原文地址:https://www.cnblogs.com/cheng6018/p/847

git提交报错SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

git push报错 git push origin master [email protected] /e/git/ouyida3/ouyida3.github.io (master) $ git push origin master fatal: unable to access 'https://github.com/ouyida3/ouyida3.github.io.git/': err or:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tl

git cherry-pick 报错 fatal: bad object

场景:程序员A提交了一个commit到gerrit上,我们叫他为commit_id1,但是还没有review,那就是没有入库,程序员B想再本地拿到这个commitd_id1,既然这个提交没有入库,很明显,B单纯执行git pull是拿不到这个提交的,那他要怎么办呢, 目前我想到的有几种方式:第一种如果只是单纯了改了很少量的文件,我们不排斥程序员A把这几个文件直接发给B.如果改动比较大呢?第二种,程序员A本地关于这个提交生成一个patch,发给B,B再在本地把这个patch打上,这是个不错的方式.

git bash提交代码过程 以及 git pull报错 your local changes to the following files would be overwritten by merge:

git bash 平常提交代码流程: 1. 在文件根目录下鼠标右键点击空白处,选择git Base here 2. git status 查看哪些文件被修改,文件状态为 modified, 也就是被修改了,“Changes not stagged for commit”表示文件被修改但是提交前还没有被存储 3. git add 将修改添加到暂存区(git commit之前必须要执行这一步) git add . : 是将所有被修改的文件和新增加的文件,但不包括被删除的文件 添加到缓存区 git a

Mac 执行git命令报错xcrun: error: invalid active developer path的解决办法

报错 git clone xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun C02M71L9F8J2:~ pub_pawf_autotest$ git clone http://git-ma.paic.com.cn/DINGXIANZHI795/a

git clone 报错:fatal: HTTP request failed

git clone https://github.com/xxxx/lilxxy.git Initialized empty Git repository in /tmp/clone123/lxyily/.git/ error: while accessing https://github.com/xxxx/lxyily.git/info/refs fatal: HTTP request failed 这个报错的原因可以能是:1.服务器时间问题2.git 版本问题3.curl版本问题对于3,因为