git - Getting the date-time of the last commit -


i'm trying date-time of last commit whitespaces:

   git log -n 1 --pretty=format:%cd --date=format:%d %b %y 

an exception is:

fatal: ambiguous argument '%b': unknown revision or path not in working tree. use '--' separate paths revisions, this: 'git <command> [<revision>...] -- [<file>...]' 

it seems work double quotes (using git version 2.13.1.windows.1):

vonc@voncavn7 d:\git\git > git log -n 1 --pretty=format:%cd --date=format:"%d %b %y" 15 jun 2017 

it works in bash too:

vonc@voncavn7 mingw64 /d/git/git (master) $ git log -n 1 --pretty=format:%cd --date=format:"%d %b %y" 15 jun 2017 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -