# 🚀 Productive Git Commit Helper
> 🧰 _A beginner-friendly script to speed up your Git workflow with one simple command!_
---
## 🟢 Start Here — Easiest Way to Use
💡 **Just copy and paste this in your terminal:**
```bash
read -p "📨 Enter commit message: " msg; git add .; git commit -m "$msg"; git push
```🔹 This will:
- Ask you for a commit message
- Stage all your changes
- Commit with the provided message
- Push to your remote repository
✅ Example:
📨 Enter commit message: Fix typo in READMEThe script will automatically run:
git add .
git commit -m "Fix typo in README"
git pushPerfect for:
- 👨💻 Solo developers and small teams
- ⚡ Fast prototyping and frequent commits
- 😌 Reducing repetitive typing
🧱 Create a Makefile in your project folder and paste this content:
commit:
@git add .
@read -p "📨 Enter commit message: " msg; \
git commit -m "$$msg"; \
git pushNow every time you want to commit:
make commit✅ No more copy-pasting long Git commands.
If you want to make this a global shortcut:
-
Open your shell config file:
~/.bashrc(for Bash)~/.zshrc(for Zsh)
-
Add this line:
alias gpush='read -p "📨 Enter commit message: " msg; git add .; git commit -m "$msg"; git push'- Reload your config:
source ~/.bashrc # or ~/.zshrc- Now use it anytime with:
gpush🚀 That’s it!
Feel free to fork this idea, improve the script, or suggest new features via pull request. Let’s help more developers stay in flow and productive. ⚡