Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git日志>;CHANGELOG.md产生奇怪的字符_Git_Git Log - Fatal编程技术网

Git日志>;CHANGELOG.md产生奇怪的字符

Git日志>;CHANGELOG.md产生奇怪的字符,git,git-log,Git,Git Log,我使用以下命令在提交之前立即生成CHANGELOG.md: git log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an <%ae> %Cgreen%d %Creset%s' --date=short --graph > CHANGELOG.md 这些是用于在控制台中显示颜色的转义字符: 将输出重定向到CHANGELOG.md时,应该让git log不显示颜色 |\ | * 97997cf 6 days ago Timoth

我使用以下命令在提交之前立即生成CHANGELOG.md:

git log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an <%ae> %Cgreen%d %Creset%s' --date=short --graph > CHANGELOG.md

这些是用于在控制台中显示颜色的转义字符:

将输出重定向到CHANGELOG.md时,应该让git log不显示颜色

|\
| * 97997cf 6 days ago Timothy Stephens <timothy.f.stephens@gmail.com>  bugzid:16451 new lockfile
* | 4245715 6 days ago Timothy Stephens <timothy.f.stephens@gmail.com>  bugzid:16451 added tag script v1, new lockfile
|/
* 98cc3a6 6 days ago Timothy Stephens <timothy.f.stephens@gmail.com>  bugzid:16451 include .lock for deploy, temporarily remove tests automatically running
* eaa8b2f 6 days ago Timothy Stephens <timothy.f.stephens@gmail.com>  bugzid:16451 removed submodulegit status
* 3b6c82f 6 days ago Timothy Stephens <timothy.f.stephens@gmail.com>  bugzid:16451 merge master 2014-11-13
|\
| * ^[[33m97997cf ^[[31m6 days ago ^[[34mTimothy Stephens <timothy.f.stephens@gmail.com> ^[[32m ^[[mbugzid:16451 new lockfile
* | ^[[33m4245715 ^[[31m6 days ago ^[[34mTimothy Stephens <timothy.f.stephens@gmail.com> ^[[32m ^[[mbugzid:16451 added tag script v1, new lockfile
|/
* ^[[33m98cc3a6 ^[[31m6 days ago ^[[34mTimothy Stephens <timothy.f.stephens@gmail.com> ^[[32m ^[[mbugzid:16451 include .lock for deploy, temporarily remov$
* ^[[33meaa8b2f ^[[31m6 days ago ^[[34mTimothy Stephens <timothy.f.stephens@gmail.com> ^[[32m ^[[mbugzid:16451 removed submodulegit status
* ^[[33m3b6c82f ^[[31m6 days ago ^[[34mTimothy Stephens <timothy.f.stephens@gmail.com> ^[[32m ^[[mbugzid:16451 merge master 2014-11-13