---
title: "Discussion on \"Using Shell Command in Git Alias\" | Hashnode"
description: "Discussion on \"Using Shell Command in Git Alias\". We can prefix the Git Alias with ! to make it a shell command instead of sub-command to git.\ngit config --global alias.statuses \\\n'!for repo in $(find * -type d -maxdepth 0); do echo \"\\n=========$repo==========\\n\" && git -C $repo status; done'\n\nNow g..."
url: "https://hashnode.com/posts/using-shell-command-in-git-alias/6706d089a72930f919c63b8d"
---

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

Discussion

# [Using Shell Command in Git Alias](https://arunvelsriram.dev/using-shell-command-in-git-alias?utm_source=hashnode&utm_medium=feed)

We can prefix the Git Alias with ! to make it a shell command instead of sub-command to git. git config --global alias.statuses \\ '!for repo in $(find \* -type d -maxdepth 0); do echo "\\n=========$repo==========\\n" && git -C $repo status; done' Now g...

Jul 11, 2024 · 1 min read · arunvelsriram.dev  
Read the article

-   [#til](https://hashnode.com/tag/til)
-   [#todayilearned](https://hashnode.com/tag/todayilearned)
-   [#git](https://hashnode.com/tag/git)
-   [#command-line](https://hashnode.com/tag/command-line)
-   [#shell](https://hashnode.com/tag/shell)

## Written by

[Arunvel Sriram](https://hashnode.com/@arunvelsriram)

@arunvelsriram · Chennai, Tamil Nadu, India

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

Engineering @ Equal Experts | Ex-Thoughtworks | DevOps | Polyglot | Backend | Open Source

Engineering @ Equal Experts | Ex-Thoughtworks | DevOps | Polyglot | Backend | Open Source

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
