How to use git as a standup tool
Tags: git, beginners, programming, tutorial
Published: 2020-07-10 14:07:39

---
title: How to use git as a standup tool
published: true
tags: git, beginners, programming, tutorial
canonical_url: https://gitbetter.substack.com/p/how-to-use-git-as-a-standup-tool
---

![](https://cdn.substack.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7c12566-1665-42f9-b9fc-976639d2b871_420x300.gif)

> #### This post was originally posted in the newsletter [GitBetter](https://gitbetter.substack.com/). If you are interested in leveling up your game in Git, you can subscribe to it.

If you are working on several repos or in a large team on a daily basis then keep tracking what is being done and who is working on which feature can be something daunting.

But fortunately, Git helps us to track the changes in the repo so that you view this information in simple commands.

#### Using git shortlog

Git shortlog is similar to git log but the commits will be grouped by author and title.

For example,

```
git shortlog
```
![](https://cdn.substack.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7e45552b-ce1f-4410-b82c-a6da4cddaa1d_723x543.png)

In the above image, you can see that the git logs are grouped by author name and with the number of commit numbers.

This helps you to see which author has worked on which commit.

#### Using date range

Shortlog comes with numerous options. One of the most important options is using a date range.

```
git shortlog --after="1 week ago" --before="1 day"
```

**—after** include commits more recent than the date.

**—before** include commits older than the date.

You can use other options of date as well

```
git shortlog --after="yesterday" git shortlog --after="today" git shortlog --after="10 days ago" git shortlog --after="1 week ago"
```

#### Using the commit range

Sometimes you need to look for the history in the specified commit range.

```
git shortlog A..B git shortlog 143fd1fa..9215d04f
```

Remember that **A** commit hash should be older than commit hash **B**

#### Filter by files

Shortlog also provides an option to filter by only specified files.

```
git shortog -- one.txt
```

The above option will filter commits that contain changes from the specified file.

```
git shortlog -- one.txt two.txt three.txt
```

You can also specify multiple files.

#### Formatting git shortlog

You can also use the formatting options for shortlog. The format options are the same as the git log.

Usage

```
git shortlog --pretty=format:"%an - %ar%n %h - %s %n"
```
![](https://cdn.substack.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc3448561-4e92-4747-a5a7-396f87ccb308_806x454.png)

You can view other format options [here](https://git-scm.com/docs/git-log%5C#_pretty_formats)

#### Git standup

To make things easier, there is a tool called [git-standup](https://github.com/kamranahmedse/git-standup)

Git standup is an open-source tool that helps you to track what you have been working on and what your team has been working on. It comes with various options that you can play with it.

![](https://cdn.substack.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc65ae38d-fec5-4040-b95a-170a3c5b5ed3_640x266.gif)

Thank you for reading :)

> #### This post was originally posted in the newsletter [GitBetter](https://gitbetter.substack.com/). If you are interested in leveling up your game in Git, you can subscribe to it.