From git I can get the timestamp:
\"2011-10-04 12:58:36 -0600\"
but is there any way to show it as:
\"2011-10-04 06:58:36\"
If you want to display the git date in YYYY-MM-DD HH:MM:SS format:
DATE=$(git log -n 1 --pretty=format:"%ad" --date=iso) echo "Date: ${DATE::20}"