Answer the question
In order to leave comments, you need to log in
How to display formatted date in log?
I saw in the screencast that in the log in order to display only the date and time they write --date=format:'%F%R'.
i.e. git log --pretty='%cd %s' --date=format:'%F %R'
I have an error: fatal: invalid strftime format: '%F %R'
could this be because what is my windows?
Answer the question
In order to leave comments, you need to log in
I solved the problem myself by adding --date=format:'%Y-%m-%d %H:%M:%S' instead of --date=format:'%F %R'
https://git-scm.com/docs/git-log#_commit_formatting
I recommend reading the documentation, and not just watching screencasts. In particular, the documentation lists the available options for the date and format/pretty flags.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question