# π 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. β‘