---
title: "Comment by Kallol Das on \"Get Good At Git 💎\" | Hashnode"
description: "I would like to add few Git alias hecks from my day to day productivity boosting tricks playbook: (on Mac) vi ~/.gitconfig [alias] s = status del = branch - D c"
url: "https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/627526d2317fc95a74ca5e84"
---

[Discussion](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22)

Comment [Get Good At Git 💎](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22)

[Kallol Das](https://hashnode.com/@wittym0nk)

[May 6, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/627526d2317fc95a74ca5e84)

I would like to add few Git alias hecks from my day to day productivity boosting tricks playbook: (on Mac)

# vi ~/.gitconfig

```
[alias]
        s = status
        del = branch -D
        co = checkout
        cob = checkout -b
        st = stash list
        stp = stash pop
        se = !git rev-list --all | xargs git grep -F
        br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
        lg = !git log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30
```

Also, if you are frequently switching personal and work projects. You may have to maintain multiple git configs Here is the git config heck assuming all your work related projects are saved in /Documents/work/ folder and personal fun projects saved under /Documents/personal/ folder:

```
[includeIf "gitdir:~/Documents/work/"]
  path = ~/.gitconfig-work
[includeIf "gitdir:~/Documents/personal/"]
  path = ~/.gitconfig-personal
```

[Bushra Nazish](https://hashnode.com/@Bushra)

[May 6, 2022](https://hashnode.com/posts/get-good-at-git/62727186272fe72a917ccc22/comment/627526d2317fc95a74ca5e84#reply-62753ba2317fc95a74ca611b)

Thanks a lot for adding Kallol🙌🤩
