Skip to content

Commit

Permalink
add update about gitlog
Browse files Browse the repository at this point in the history
  • Loading branch information
natebeaty committed Mar 30, 2022
1 parent 0672104 commit 585a0ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
public/
.venv
.hugo_build.lock

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
slug = "daily-git-log-for-your-timesheet"
layout = "blog"
+++

<p><strong>Update:</strong> I made this into <a href="https://gist.github.com/natebeaty/b3edf108434a2d16cc600bd0686e92a8">a bash script</a> that has sensible defaults (<code>gitlog</code> for today's log) and a few tricks (e.g., <code>gitlog yesterday</code> to yank yesterday's log into the clipboard).</p>

<hr>

<p>This is probably the most satisfying command-line lifehack of the year for me:</p>

<pre><code>git log --author=Nate --since=1.day.ago --all-match --format='%s' | tail -r | paste -s -d : - | sed -e 's/:/; /g' | pbcopy
Expand Down

0 comments on commit 585a0ac

Please sign in to comment.