git log command


Problems running or configuring the software, commands & options, compiling, different platforms, using the interface, documentation, etc.

Dungeon Dilettante

Posts: 4

Joined: Wednesday, 19th November 2014, 06:27

Post Wednesday, 19th November 2014, 07:23

git log command

I want to have commitlog textfile

but i don't know about git log command
(except git log > log.txt ...)

let me know :)
Attachments
K-168.png
I want this
K-168.png (23.97 KiB) Viewed 1860 times
K-165.png
K-165.png (10.35 KiB) Viewed 1860 times
K-167.png
huh?
K-167.png (44.98 KiB) Viewed 1860 times

Crypt Cleanser

Posts: 720

Joined: Friday, 6th September 2013, 09:17

Post Wednesday, 19th November 2014, 07:37

Re: git log command

git help log
Has all the info.

Vestibule Violator

Posts: 1567

Joined: Friday, 21st January 2011, 22:56

Post Wednesday, 19th November 2014, 15:12

Re: git log command

Probably some encoding issue. Try using a different editor to view log.txt.
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Saturday, 22nd November 2014, 19:05

Re: git log command

newbee_band wrote:I want to have commitlog textfile

but i don't know about git log command
(except git log > log.txt ...)


It's giving you a Unix-format text file. Windows uses different line endings by default; wordpad knows how to read unix-format files, but notepad does not.

You can try:
  Code:
git log | sed -e 's/$/\r/' > log.txt

To add the carriage returns that Windows expects.

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 44 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.