Git 如何制作';吉特拉力';留言
好了,我们再来看看更多的Git Goods。它已经找到了其他方法使简单的任务变得难以完成Git 如何制作';吉特拉力';留言,git,git-pull,Git,Git Pull,好了,我们再来看看更多的Git Goods。它已经找到了其他方法使简单的任务变得难以完成 git pull -X theirs https://github.com/weidai11/cryptopp.git master From https://github.com/weidai11/cryptopp * branch master -> FETCH_HEAD Auto-merging GNUmakefile error: cannot spawn no
git pull -X theirs https://github.com/weidai11/cryptopp.git master
From https://github.com/weidai11/cryptopp
* branch master -> FETCH_HEAD
Auto-merging GNUmakefile
error: cannot spawn notepad++.exe: No such file or directory
error: unable to start editor 'notepad++.exe'
Not committing merge; use 'git commit' to complete the merge.
notepad++.exe
是几乎所有其他Windows可执行文件所在的位置。它在程序文件中。这不是秘密,也不是隐藏的地方
再试一次,这样就不会浪费我的时间在无用的废话上了:
# Rewind past broken git
git checkout HEAD~3 -f
# Back to master
git checkout master -f
# Tray again; avoid the prompt
$ git pull -X theirs -m "Sync with Upstream master" https://github.com/weidai11/cryptopp.git master
error: unknown switch `m'
usage: git pull [<options>] [<repository> [<refspec>...]]
-v, --verbose be more verbose
-q, --quiet be more quiet
--progress force progress reporting
#倒带经过损坏的git
git检测头~3-f
#回到主人身边
git签出主机-f
#再次使用托盘;避免提示
$git pull-X theres-m“与上游主机同步”https://github.com/weidai11/cryptopp.git 主人
错误:未知开关'm'
用法:git pull[][…]]
-v、 ——冗长,更冗长
-q、 ——安静点,安静点
--进度部队进度报告
有什么办法可以告诉Git,“这是要使用的信息。别把自己搞糊涂了。别把我的时间浪费在无用的废话上?”
提前感谢您不能提供自己的消息,但是传递给
git pull
的--no edit
选项将自动生成合并消息
git pull——无编辑
虽然不能用一个命令完成,但可以用两个命令轻松完成:
git pull --no-edit && git commit --amend -m "my new message"
谢谢@glukki。“你不能提供你自己的信息…”-这并不奇怪。就像这个工具会让事情变得困难。尝试执行这个简单的任务浪费了45分钟……可能有某种解决方案:您可以在
git pull
期间将返回预定义文本(合并提交消息)的脚本设置为系统编辑器,使用editor
环境变量git pull
是一个糟糕的工具。我建议避免这样做。使用fetch参数运行git fetch
,然后使用merge参数运行git merge
。你可以在这里正确地提供你自己的信息。--no edit
这件事同时适用于git pull
和git merge
,但是如果你做一个明确的单独步骤,你会得到更多的控制和可见性。似乎notepad++.exe
的路径在git config
中不正确。你能做git config core.editor
并告诉我们它说了什么吗?