Home > other >  Bat batch execution in the git log command output to a file character leakage problems
Bat batch execution in the git log command output to a file character leakage problems

Time:04-09

Recently wrote a batch, kui to perform the specified directory "git log - graph - all" type all branches of the log out, but found that the branch of the first line of information will be lost
The text of the bat in the show

Commit b1def2b58712f2ed9c699e8b7707c0636268589b (HEAD - & gt; Dev, origin/master, origin/dev, origin/HEAD, master)

Redirect to a file call showGitLog. Bat> D: \ test. The log shows that the content of the
Commit b1def2b58712f2ed9c699e8b7707c0636268589b

Less information at the back of the branch (HEAD - & gt; Dev... ), the test found in the bat with & gt; Symbol is redirected to the file will have a problem, cannot be displayed.

How to solve this problem, the git log shows the character of the original is redirected to the file

  • Related