<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/bash-never-forget-to-git-commit-again--ko355f65a" -->

---
title: Bash ~ never forget to git commit again 💥 | daily.dev
description: Bash git commit prompt script. It will loop through our project directory and tell us the following statistics per project: Is it a git repo? Did you forget to...
canonical: https://daily.dev/posts/bash-never-forget-to-git-commit-again--ko355f65a
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Bash ~ never forget to git commit again 💥 | daily.dev
og:description: Bash git commit prompt script. It will loop through our project directory and tell us the following statistics per project: Is it a git repo? Did you forget to...
og:url: https://daily.dev/posts/bash-never-forget-to-git-commit-again--ko355f65a
og:image: https://api.daily.dev/og/posts/kO355f65A.png
og:image:alt: Bash ~ never forget to git commit again 💥
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bash ~ never forget to git commit again 💥

**[Hashnode](https://daily.dev/sources/hashnode)** · 3 min read · 11 upvotes · 4 comments

## Summary

Bash git commit prompt script. It will loop through our project directory and tell us the following statistics per project: Is it a git repo? Did you forget to commit something? Do we have unstated changes? If it's not a git project we change our message. If we run our bashsh script, we will get all lines per project folder with the status.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://h.daily-dev-tips.com/bash-never-forget-to-git-commit-again>

## Community discussion

Top comments from developers on daily.dev.

**@xapu** · 4 upvotes

> Nice tip, also you should definetly check the rest of this guy's blog there are a lot of fresh articles

---

Tags: [#git](https://daily.dev/tags/git), [#bash](https://daily.dev/tags/bash)

[View this post on daily.dev](https://daily.dev/posts/bash-never-forget-to-git-commit-again--ko355f65a)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Bash ~ never forget to git commit again 💥","url":"https://daily.dev/posts/bash-never-forget-to-git-commit-again--ko355f65a","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/bash-never-forget-to-git-commit-again--ko355f65a"},"datePublished":"2020-09-04T06:00:47.595Z","dateModified":"2021-10-07T14:17:10.317Z","description":"Bash git commit prompt script. It will loop through our project directory and tell us the following statistics per project: Is it a git repo? Did you forget to...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fcb2d5be30e687cb6ed0b85ff3fc8178","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/fcb2d5be30e687cb6ed0b85ff3fc8178","isAccessibleForFree":true,"articleSection":"Hashnode","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hashnode","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/4a287b2e7cb5499bae863f8e7137cdb4","url":"https://daily.dev/sources/hashnode"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/bash-never-forget-to-git-commit-again--ko355f65a","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"git,bash","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hashnode","item":"https://daily.dev/sources/hashnode"},{"@type":"ListItem","position":3,"name":"Bash ~ never forget to git commit again 💥"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/bash-never-forget-to-git-commit-again--ko355f65a","comment":[{"@type":"Comment","text":"Nice tip, also you should definetly check the rest of this guy’s blog there are a lot of fresh articles","datePublished":"2020-09-04T06:51:35.049Z","url":"https://daily.dev/posts/kO355f65A#c-naN2b_65W","author":{"@type":"Person","name":"Harry","url":"https://daily.dev/xapu","image":"https://avatars0.githubusercontent.com/u/23619201?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}}]}
```

