---
title: "Comment by Vamsi Rao on \"How To Use Different Git Configs\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/git-config-includes/650946fcc60b2e55378abf22/comment/650d8e70f92a4f31b4653c26"
---

[Discussion](https://hashnode.com/posts/git-config-includes/650946fcc60b2e55378abf22)

Comment [How To Use Different Git Configs](https://hashnode.com/posts/git-config-includes/650946fcc60b2e55378abf22)

[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
