{"id":9532,"date":"2013-02-27T10:56:28","date_gmt":"2013-02-27T05:26:28","guid":{"rendered":"https:\/\/tothenewco.pro\/blog\/?p=9532"},"modified":"2013-02-27T10:56:28","modified_gmt":"2013-02-27T05:26:28","slug":"script-to-display-git-commits-for-creating-time-sheet","status":"publish","type":"post","link":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/","title":{"rendered":"Script to display Git commits for creating time sheet."},"content":{"rendered":"<p>We use &#8220;<em><strong>git log<\/strong><\/em>&#8221; many times a day while using Git in our projects. Sometimes we need to list <em>Git<\/em> commits between specific dates. Although,\u00a0Git provides command to do this but the syntax is too long to type.<\/p>\n<p>So I created a script named <strong><em><a title=\"timesheet\" href=\"https:\/\/github.com\/puneetbehl\/timesheet.git\" target=\"_blank\">timesheet<\/a><\/em><\/strong>, which facilitates us to display Git commits between two specific dates or after a specified date in prettified one line format for a specific author via very simple syntax. Below is the timesheet script:<\/p>\n<p>[sourcecode language=&#8221;bash&#8221;]<br \/>\n   #!\/bin\/bash<\/p>\n<p>   TODAY=`date +%Y%m%d`<br \/>\n   EXPECTED_ARGS=1<br \/>\n   E_BADARGS=65<br \/>\n   AUTHOR_NAME_REGEX=&quot;.*&quot;<br \/>\n   DATE_REGEX=&quot;[1-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]&quot;<br \/>\n   DAY_REGEX=&quot;[0-3][0-9]&quot;<br \/>\n   if [ $# -lt $EXPECTED_ARGS ]<br \/>\n   then<br \/>\n       git log &#8211;pretty=&quot;short&quot; &#8211;format=%Cblue%h%&#8217; &#8216;Cgreen%an[%ad]%&#8217; &#8216;Creset%s%n &#8211;date=short<br \/>\n   fi<\/p>\n<p>   if [[ $# -eq $EXPECTED_ARGS &amp;&amp; $1 =~ $AUTHOR_NAME_REGEX ]]<br \/>\n   then<br \/>\n       git log &#8211;pretty=&quot;short&quot; &#8211;format=%Cblue%h%&#8217; &#8216;Cgreen%an[%ad]%&#8217; &#8216;Creset%s%n &#8211;date=short &#8211;author=$1<br \/>\n   fi<\/p>\n<p>   if [[ $# -eq $EXPECTED_ARGS &amp;&amp; $1 =~ $DATE_REGEX ]]<br \/>\n   then<br \/>\n       git log &#8211;pretty=&quot;short&quot; &#8211;format=%Cblue%h%&#8217; &#8216;Cgreen%an[%ad]%&#8217; &#8216;Creset%s%n &#8211;date=short &#8211;after={$1}<br \/>\n   fi<\/p>\n<p>   if [[ $# -gt $EXPECTED_ARGS &amp;&amp; $# -eq 2 &amp;&amp; $1 =~ $DATE_REGEX &amp;&amp; $2 =~ $AUTHOR_NAME_REGEX ]]<br \/>\n   then<br \/>\n       git log &#8211;pretty=&quot;short&quot; &#8211;format=%Cblue%h%&#8217; &#8216;Cgreen%an[%ad]%&#8217; &#8216;Creset%s%n &#8211;date=short &#8211;after={$1} &#8211;author=$2<br \/>\n   fi<\/p>\n<p>   if [[ $# -gt $EXPECTED_ARGS &amp;&amp; $# -eq 2 &amp;&amp; $1 =~ $DATE_REGEX &amp;&amp; $2 =~ $DATE_REGEX ]]<br \/>\n   then<br \/>\n       git log &#8211;pretty=&quot;short&quot; &#8211;format=%Cblue%h%&#8217; &#8216;Cgreen%an[%ad]%&#8217; &#8216;Creset%s%n &#8211;date=short &#8211;after={$1} &#8211;before={$2}<br \/>\n   fi<\/p>\n<p>   if [[ $# -gt $EXPECTED_ARGS &amp;&amp; $# -eq 3 &amp;&amp; $1 =~ $DATE_REGEX &amp;&amp; $2 =~ $DATE_REGEX &amp;&amp; $3 =~ $AUTHOR_NAME_REGEX ]]<br \/>\n   then<br \/>\n       git log &#8211;pretty=&quot;short&quot; &#8211;format=%Cblue%h%&#8217; &#8216;Cgreen%an[%ad]%&#8217; &#8216;Creset%s%n &#8211;date=short &#8211;after={$1} &#8211;before=${2} &#8211;author=$3<br \/>\n   fi<\/p>\n<p>   if [[ $# -eq $EXPECTED_ARGS &amp;&amp; $1 =~ $DAY_REGEX ]]<br \/>\n   then<br \/>\n       git log &#8211;pretty=&quot;short&quot; &#8211;format=%Cblue%h%&#8217; &#8216;Cgreen%an[%ad]%&#8217; &#8216;Creset%s%n &#8211;date=short &#8211;after={$1-%m-%Y}<br \/>\n   fi<\/p>\n<p>   if [[ $# -gt $EXPECTED_ARGS &amp;&amp; $# -eq 2 &amp;&amp; $1 =~ $DAY_REGEX &amp;&amp; $2 =~ $DAY_REGEX ]]<br \/>\n   then<br \/>\n       git log &#8211;pretty=&quot;short&quot; &#8211;format=%Cblue%h%&#8217; &#8216;Cgreen%an[%ad]%&#8217; &#8216;Creset%s%n &#8211;date=short &#8211;after={$1-%m-%Y} &#8211;before={$2-%m-%Y}<br \/>\n   fi<\/p>\n<p>   if [[ $# -gt $EXPECTED_ARGS &amp;&amp; $# -eq 2 &amp;&amp; $1 =~ $DAY_REGEX &amp;&amp; $2 =~ $AUTHOR_NAME_REGEX ]]<br \/>\n   then<br \/>\n       git log &#8211;pretty=&quot;short&quot; &#8211;format=%Cblue%h%&#8217; &#8216;Cgreen%an[%ad]%&#8217; &#8216;Creset%s%n &#8211;date=short &#8211;after={$1-%m-%Y} &#8211;author=$2<br \/>\n   fi<\/p>\n<p>   if [[ $# -gt $EXPECTED_ARGS &amp;&amp; $# -eq 3 &amp;&amp; $1 =~ $DAY_REGEX &amp;&amp; $2 =~ $DAY_REGEX &amp;&amp; $3 =~ $AUTHOR_NAME_REGEX ]]<br \/>\n   then<br \/>\n       git log &#8211;pretty=&quot;short&quot; &#8211;format=%Cblue%h%&#8217; &#8216;Cgreen%an[%ad]%&#8217; &#8216;Creset%s%n &#8211;date=short &#8211;after={$1-%m-%Y} &#8211;before={$2-%m-%Y} &#8211;author=$3<br \/>\n   fi<br \/>\n[\/sourcecode]<\/p>\n<p><strong>Installation<\/strong><br \/>\nIn case of Ubuntu<\/p>\n<ol>\n<li>Open the terminal.<\/li>\n<li>Open the file .gitconfig in your home directory using your favorite text editor. (e.g: gedit, vim, vi)<\/li>\n<li>Check that the script file has executable permissions. (if not change via chmod command)<\/li>\n<li>Create an alias for the script in .gitconfig as shown below:<br \/>\n[sourcecode language=&#8221;bash&#8221;]<br \/>\n[alias]<br \/>\ntimesheet = ! &lt;PATH_TO_SCRIPT_FILE&gt;\/timesheet<br \/>\n [\/sourcecode]<\/li>\n<\/ol>\n<p><strong>Usage<\/strong><br \/>\nSome of the usages are given below:<\/p>\n<p>[bash]<br \/>\n   git timesheet<br \/>\n   git timesheet &lt;START_DAY_OF_CURRENT_MONTH&gt;<br \/>\n   git timesheet &lt;START_DAY&gt; &lt;END_DAY&gt;<br \/>\n   git timesheet &lt;START_DATE&gt;<br \/>\n   git timesheet &lt;START_DATE&gt; &lt;END_DATE&gt;<br \/>\n   git timesheet &lt;AUTHOR_NAME&gt;<br \/>\n   git timesheet &lt;START_DAY&gt; &lt;AUTHOR_NAME&gt;<br \/>\n   git timesheet &lt;START_DAY&gt; &lt;END_DAY&gt; &lt;AUTHOR_NAME&gt;<br \/>\n   git timesheet &lt;START_DATE&gt; &lt;AUTHOR_NAME&gt;<br \/>\n   git timesheet &lt;START_DATE&gt; &lt;END_DATE&gt; &lt;AUTHOR_NAME&gt;<br \/>\n[\/bash]<\/p>\n<p><strong>Example<\/strong><\/p>\n<p>[bash]<br \/>\ngit timesheet 15 17<br \/>\nor<br \/>\ngit timesheet 2013-02-15 2013-02-17<br \/>\nor<br \/>\ngit timesheet 15 17 &lt;AUTHOR_NAME&gt;<br \/>\n[\/bash]<\/p>\n<p><strong>Note:<\/strong> One can specify dates as 15 or 17 only for current month otherwise dates should be in yyyy-mm-dd (2013-02-15) format.<\/p>\n<p><em>Please share your feedback and suggestions.<\/em><\/p>\n<hr \/>\n<p style=\"text-align: right\"><strong><em><a title=\"timesheet\" href=\"https:\/\/github.com\/puneetbehl\/timesheet.git\" target=\"_blank\">Read more about timesheet script on GitHub \u00bb<\/a><\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We use &#8220;git log&#8221; many times a day while using Git in our projects. Sometimes we need to list Git commits between specific dates. Although,\u00a0Git provides command to do this but the syntax is too long to type. So I created a script named timesheet, which facilitates us to display Git commits between two specific [&hellip;]<\/p>\n","protected":false},"author":57,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":14,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-9532","post","type-post","status-publish","format-standard","hentry","category-grails"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"We use &quot;git log&quot; many times a day while using Git in our projects. Sometimes we need to list Git commits between specific dates. Although, Git provides command to do this but the syntax is too long to type. So I created a script named timesheet, which facilitates us to display Git commits between two specific\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Puneet Behl\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Script to display Git commits for creating time sheet. | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"We use &quot;git log&quot; many times a day while using Git in our projects. Sometimes we need to list Git commits between specific dates. Although, Git provides command to do this but the syntax is too long to type. So I created a script named timesheet, which facilitates us to display Git commits between two specific\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Script to display Git commits for creating time sheet. | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"We use &quot;git log&quot; many times a day while using Git in our projects. Sometimes we need to list Git commits between specific dates. Although, Git provides command to do this but the syntax is too long to type. So I created a script named timesheet, which facilitates us to display Git commits between two specific\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/script-to-display-git-commits-for-creating-time-sheet\\\/#article\",\"name\":\"Script to display Git commits for creating time sheet. | TO THE NEW Blog\",\"headline\":\"Script to display Git commits for creating time sheet.\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/puneet-behl\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2013-02-27T10:56:28+05:30\",\"dateModified\":\"2013-02-27T10:56:28+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/script-to-display-git-commits-for-creating-time-sheet\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/script-to-display-git-commits-for-creating-time-sheet\\\/#webpage\"},\"articleSection\":\"Grails\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/script-to-display-git-commits-for-creating-time-sheet\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"position\":2,\"name\":\"Grails\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/script-to-display-git-commits-for-creating-time-sheet\\\/#listItem\",\"name\":\"Script to display Git commits for creating time sheet.\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/script-to-display-git-commits-for-creating-time-sheet\\\/#listItem\",\"position\":3,\"name\":\"Script to display Git commits for creating time sheet.\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/puneet-behl\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/puneet-behl\\\/\",\"name\":\"Puneet Behl\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/script-to-display-git-commits-for-creating-time-sheet\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/9b6468fa-13e0-4dbc-8a73-9fa9d1ecf84e_puneet.behl@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Puneet Behl\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/script-to-display-git-commits-for-creating-time-sheet\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/script-to-display-git-commits-for-creating-time-sheet\\\/\",\"name\":\"Script to display Git commits for creating time sheet. | TO THE NEW Blog\",\"description\":\"We use \\\"git log\\\" many times a day while using Git in our projects. Sometimes we need to list Git commits between specific dates. Although, Git provides command to do this but the syntax is too long to type. So I created a script named timesheet, which facilitates us to display Git commits between two specific\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/script-to-display-git-commits-for-creating-time-sheet\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/puneet-behl\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/puneet-behl\\\/#author\"},\"datePublished\":\"2013-02-27T10:56:28+05:30\",\"dateModified\":\"2013-02-27T10:56:28+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Script to display Git commits for creating time sheet. | TO THE NEW Blog","description":"We use \"git log\" many times a day while using Git in our projects. Sometimes we need to list Git commits between specific dates. Although, Git provides command to do this but the syntax is too long to type. So I created a script named timesheet, which facilitates us to display Git commits between two specific","canonical_url":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/#article","name":"Script to display Git commits for creating time sheet. | TO THE NEW Blog","headline":"Script to display Git commits for creating time sheet.","author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/puneet-behl\/#author"},"publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"},"datePublished":"2013-02-27T10:56:28+05:30","dateModified":"2013-02-27T10:56:28+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/#webpage"},"isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/#webpage"},"articleSection":"Grails"},{"@type":"BreadcrumbList","@id":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/tothenewco.pro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/grails\/#listItem","name":"Grails"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/grails\/#listItem","position":2,"name":"Grails","item":"https:\/\/tothenewco.pro\/blog\/category\/grails\/","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/#listItem","name":"Script to display Git commits for creating time sheet."},"previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/#listItem","position":3,"name":"Script to display Git commits for creating time sheet.","previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/grails\/#listItem","name":"Grails"}}]},{"@type":"Organization","@id":"https:\/\/tothenewco.pro\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/tothenewco.pro\/blog\/"},{"@type":"Person","@id":"https:\/\/tothenewco.pro\/blog\/author\/puneet-behl\/#author","url":"https:\/\/tothenewco.pro\/blog\/author\/puneet-behl\/","name":"Puneet Behl","image":{"@type":"ImageObject","@id":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/9b6468fa-13e0-4dbc-8a73-9fa9d1ecf84e_puneet.behl@tothenew.com.jpg","width":96,"height":96,"caption":"Puneet Behl"}},{"@type":"WebPage","@id":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/#webpage","url":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/","name":"Script to display Git commits for creating time sheet. | TO THE NEW Blog","description":"We use \"git log\" many times a day while using Git in our projects. Sometimes we need to list Git commits between specific dates. Although, Git provides command to do this but the syntax is too long to type. So I created a script named timesheet, which facilitates us to display Git commits between two specific","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/#breadcrumblist"},"author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/puneet-behl\/#author"},"creator":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/puneet-behl\/#author"},"datePublished":"2013-02-27T10:56:28+05:30","dateModified":"2013-02-27T10:56:28+05:30"},{"@type":"WebSite","@id":"https:\/\/tothenewco.pro\/blog\/#website","url":"https:\/\/tothenewco.pro\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Script to display Git commits for creating time sheet. | TO THE NEW Blog","og:description":"We use &quot;git log&quot; many times a day while using Git in our projects. Sometimes we need to list Git commits between specific dates. Although, Git provides command to do this but the syntax is too long to type. So I created a script named timesheet, which facilitates us to display Git commits between two specific","og:url":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/","og:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Script to display Git commits for creating time sheet. | TO THE NEW Blog","twitter:description":"We use &quot;git log&quot; many times a day while using Git in our projects. Sometimes we need to list Git commits between specific dates. Although, Git provides command to do this but the syntax is too long to type. So I created a script named timesheet, which facilitates us to display Git commits between two specific","twitter:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"9532","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 14:41:23","updated":"2024-02-29 09:22:53","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\/category\/grails\/\" title=\"Grails\">Grails<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tScript to display Git commits for creating time sheet.\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/tothenewco.pro\/blog"},{"label":"Grails","link":"https:\/\/tothenewco.pro\/blog\/category\/grails\/"},{"label":"Script to display Git commits for creating time sheet.","link":"https:\/\/tothenewco.pro\/blog\/script-to-display-git-commits-for-creating-time-sheet\/"}],"_links":{"self":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/9532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/users\/57"}],"replies":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/comments?post=9532"}],"version-history":[{"count":0,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/9532\/revisions"}],"wp:attachment":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/media?parent=9532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/categories?post=9532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/tags?post=9532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}