---
title: "Discussion on \"How To Use Different Git Configs\" | Hashnode"
description: "Discussion on \"How To Use Different Git Configs\". Optimize Git configs with conditional includes for multiple projects, managing user profiles and streamlining commit associations."
url: "https://hashnode.com/posts/git-config-includes/650946fcc60b2e55378abf22"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Use Different Git Configs](https://wempe.dev/blog/git-config-includes?utm_source=hashnode&utm_medium=feed)

Optimize Git configs with conditional includes for multiple projects, managing user profiles and streamlining commit associations.

Sep 19, 2023 · 3 min read · wempe.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#programming](https://hashnode.com/tag/programming)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#github](https://hashnode.com/tag/github)

## Written by

[Jannik Wempe](https://hashnode.com/@JannikWempe)

@JannikWempe · Hamburg, Germany

  
[View profile](https://hashnode.com/@JannikWempe)

Platform Engineering Lead @hashnode | Serverless and Frontend Enthusiast

Platform Engineering Lead @hashnode Serverless and Frontend Enthusiast 🤓 Into AWS, TypeScript, React, Svelte and upcoming trends… ☁️ AWS Community Builder Serverless Coding is not only a job – it's a passion. Based in Hamburg 🇩🇪

## Responses 2

Markdown supported · ⌘↵ to post

[Vamsi Rao](https://hashnode.com/@vamsirao)

[Sep 22, 2023](https://hashnode.com/posts/git-config-includes/650946fcc60b2e55378abf22/comment/650d8e70f92a4f31b4653c26)

This is super useful, setting it up right now. Would also love to read an article on the aliases you have set in your git config.

I recently setup `rb` alias (for recent branches) for listing the last 7 branches I've visited in the current repo. Use it quite often ✨

```
 rb = for-each-ref --count=7 --sort=-committerdate refs/heads/ --format='%(refname:short)'
```

[Jannik Wempe](https://hashnode.com/@JannikWempe)

[Sep 22, 2023](https://hashnode.com/posts/git-config-includes/650946fcc60b2e55378abf22/comment/650d8e70f92a4f31b4653c26#reply-650d8f66f92a4f31b4653c54)

Happy that you liked it 😊

That alias seems nice. I either do `git co -` which checks out the previous branch (I do have a `co` alias and tons of others). Or I do `git cosb` ("checkout search branch") which opens up a fuzzy search for branches powered by `fzf`: `!git branch | fzf | xargs git checkout && git fetch origin`. Maybe I should write about some neat aliases as well ... 🤔

[Vamsi Rao](https://hashnode.com/@vamsirao)

[Sep 22, 2023](https://hashnode.com/posts/git-config-includes/650946fcc60b2e55378abf22/comment/650d8e70f92a4f31b4653c26#reply-650d9398f92a4f31b4653d7a)

[Jannik Wempe](https://hashnode.com/@JannikWempe) That's 3 new aliases I'm adding to my config, good sign to write that article :P

[Lakshya Thakur](https://hashnode.com/@lakbychance)

[Sep 21, 2023](https://hashnode.com/posts/git-config-includes/650946fcc60b2e55378abf22/comment/650bd2d28cd3ce237b6dda47)

Short and to the point ✨. I have been currently using `git` by mostly relying on default config setups. Any smart ideas like above which have helped you also do code reviews more efficiently than before while not breaking your own flow ?

[Sep 22, 2023](https://hashnode.com/posts/git-config-includes/650946fcc60b2e55378abf22/comment/650bd2d28cd3ce237b6dda47#reply-650d901e59ede531e43ed1e6)

Happy that you liked it 😊

I am not exactly sure what you are looking for. Something general like setting aside specific time windows for reviews and starting reviews after breaks etc. or more technical like using the GitHub VSCode extension to do reviews inside of the IDE which is also quite nice.

[Lakshya Thakur](https://hashnode.com/@lakbychance)

[Sep 22, 2023](https://hashnode.com/posts/git-config-includes/650946fcc60b2e55378abf22/comment/650bd2d28cd3ce237b6dda47#reply-650db0cf59ede531e43ed6f4)

[Jannik Wempe](https://hashnode.com/@JannikWempe) Technical bits for sure. Also I can actually read a whole article by you on smart git aliases that speed up the dev workflow
