相关疑难解决方法(0)

如何重写第一个git commit消息?

我有一个包含3个提交的工作树:

➜~myprojectgit :(主人) git log

commit a99cce8240495de29254b5df8745e41815db5a75
Author: My Name <my@mail.com>
Date:   Thu Aug 16 00:59:05 2012 +0200

    .gitignore edits

commit 5bccda674c7ca51e849741290530a0d48efd69e8
Author: My Name <my@mail.com>
Date:   Mon Aug 13 01:36:39 2012 +0200

    Create .gitignore file

commit 6707a66191c84ec6fbf148f8f1c3e8ac83453ae3
Author: My Name <my@mail.com>
Date:   Mon Aug 13 01:13:05 2012 +0200

    Initial commit (with a misleading message)
Run Code Online (Sandbox Code Playgroud)

现在我希望reword第一次提交的提交消息(6707a66)

➜~myprojectgit :(主人) git rebase -i 6707

(...进入vim)

pick 5bccda6 Create .gitignore file
pick a99cce8 .gitignore edits

# Rebase 6707a66..a99cce8 onto …
Run Code Online (Sandbox Code Playgroud)

git message git-rebase git-commit revision-history

97
推荐指数
3
解决办法
1万
查看次数

符号^在批处理脚本中的含义是什么?

在此命令中:

FOR /F %%A IN ('TYPE "%InFile%"^|find /v /c ""')DO SET "Till=%%A"
Run Code Online (Sandbox Code Playgroud)

什么^意思?

windows batch-file

20
推荐指数
3
解决办法
1万
查看次数