๐ git-undo
A simple CLI tool to undo common Git mistakes like bad commits, staging errors, or merge problems.
Features
- Undo last commit (keep changes staged)
- Unstage all files
- Abort in-progress merge
- Recover from hard resets using
reflog
- Auto-detect last safe action
Usage
git undo commit
git undo add
git undo reset
git undo merge
git undo
Install
curl -O https://raw.githubusercontent.com/kishism/shellflower/master/tools/git-undo
chmod +x git-undo
mv git-undo ~/bin/
๐ฃ git-save
A helper tool to quickly save your changes in Git with one command. Great for speeding up commit workflows during development.
Features
- Adds all current changes
- Commits with a message
- Optional
--push
flag to push directly to the current branch - Built-in help via
--help
Usage
git-save "Fix navbar bug"
git-save "Update README" --push
git-save --help
Install
curl -O https://raw.githubusercontent.com/kishism/shellflower/master/tools/git-save
chmod +x git-save
mv git-save ~/bin/
๐ฑ project-init
A CLI utility to generate basic project structures with optional templates and Git setup.
Features
- Supports templates:
python
,node
,html
- Auto-generates folder structure and starter files
- Optional Git initialization
- Custom
README.md
per project
Usage
project-init my-app
project-init my-site --template html
project-init my-lib --template python --git
Install
curl -O https://raw.githubusercontent.com/kishism/shellflower/master/tools/project-init
chmod +x project-init
mv project-init ~/bin/
๐ git-status-check
A minimal Git helper to give you a quick summary of your current branch, status, and recent commits.
Features
- Check if you're inside a Git repository
- Show current branch
- Display short status overview
- List recent commits (last 3)
Usage
git-status-check
Install
curl -O https://raw.githubusercontent.com/kishism/shellflower/master/tools/git-status-check
chmod +x git-status-check
mv git-status-check ~/bin/
๐ฟ git-branchify
Create and checkout a new Git branch from the current branch, automatically formatting the branch name.
Features
- Formats branch names: converts to lowercase, replaces spaces & invalid chars with dashes
- Trims leading and trailing dashes
- Creates and switches to the new branch in one command
Usage
git-branchify "Add cool feature"
Install
curl -O https://raw.githubusercontent.com/kishism/shellflower/master/tools/git-branchify
chmod +x git-branchify
mv git-branchify ~/bin/
๐ git-pushup
Automatically stage, commit, push changes to GitHub, and open the repo page in your browser.
Features
- Staging and committing all changes
- Optional commit message
- Pushes to current branch
- Opens the GitHub repository page in your browser
Usage
git-pushup "Refactor auth system"
Install
curl -O https://raw.githubusercontent.com/kishism/shellflower/master/tools/git-pushup
chmod +x git-pushup
mv git-pushup ~/bin/
Note: This script currently supports browser opening on macOS and Linux only. For Windows users, you'll need to open the GitHub page manually.
๐ต๏ธโโ๏ธ whoami
A quick one-liner to display your current Git user, branch, remote repository URL, and the last commit message.
Usage
git whoami
Example Output
Git User: Jane Doe <jane@example.com>
Branch: main
Remote: git@github.com:jane/repo.git
Last Commit: Fix typo in README