v1.0.4
Gitok supercharges your Git workflow with 35+ custom commands and aliases designed to make Git operations faster and more intuitive.
β¨ Key Features
π§ Core Git Operations
commit "message"- Stage all changes and commit with messagepush- Push to current branch with safety checkspushall- Push to all configured remotes with rebasepull- Pull with automatic rebasestatus- Enhanced git status display
πΏ Branch Management
branch <name>- Create and switch to new branchcheckout <name>- Switch to existing branchbranches- List all branches with detailsdeletebranch <name>- Safely delete branch
π Advanced Features
unpush- Safely undo last push (with confirmation)squashlast [N]- Squash last N commitsgraphlog- Beautiful commit history visualizationmakeignore <type>- Generate .gitignore templates
π οΈ Productivity Tools
gitcheatsheet- Interactive command referencegitok --update- Auto-update to latest versiongitok --version- Show version information- Safety confirmations for destructive operations
π¦ Installation
π§ Linux & macOS
bash <(curl -sL https://raw.githubusercontent.com/okwareddevnest/gitok/main/install.sh)πͺ Windows Users
Option 1: WSL (Recommended)
wsl bash -c "curl -sL https://raw.githubusercontent.com/okwareddevnest/gitok/main/install.sh | bash"Option 2: Git Bash
bash <(curl -sL https://raw.githubusercontent.com/okwareddevnest/gitok/main/install.sh)Option 3: PowerShell (Run as Administrator)
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/okwareddevnest/gitok/main/install-windows.ps1'))Option 4: Download & Run Batch File
Download: install-windows.bat
β Verify Installation
# Restart your terminal or run:
source ~/.bashrc # or source ~/.zshrc
# Test installation
gitok --version
gitcheatsheetπ Updates
# Auto-update to latest version
gitok --update
# Check current version
gitok --versionπ Quick Start
# Initialize repo and make first commit
init
commit "Initial commit"
# Create feature branch
branch feature/awesome-feature
commit "Add awesome feature"
# Push to all remotes
pushall
# View commit history
graphlog
# See all commands
gitcheatsheetπ Complete Command List
Repository Management
init- Initialize Git repositoryclone <url>- Clone repositorystatus- Show repository status
Staging & Commits
addall- Stage all changescommit "message"- Stage all and commitcommitonly "message"- Commit staged changes onlyamendmsg "message"- Amend last commit message
Push & Pull Operations
push- Push current branchpushall- Push to all remotespushnew- Push new branch to remotepull- Pull with rebaseunpush- Undo last push (β οΈ destructive)trackremote- Set upstream tracking
Branch Operations
branch <name>- Create and switch to branchcheckout <name>- Switch to branchbranches- List all branchesdeletebranch <name>- Delete branch safelydeletebranchf <name>- Force delete branch
History & Logs
graphlog- Graphical commit historylast- Show last commitlogfull- Detailed commit historydiff- Show changes
Undo & Reset
resetsoft- Soft reset to last commitresethard- Hard reset to last commitrevertlast- Revert last commitunstage- Unstage changesrestore <file>- Restore file
Stash Operations
stash- Stash current changespop- Pop latest stash
Cleanup & Tools
clean- Clean untracked filestracked- Show tracked filesremotes- Show remote repositoriessquashlast [N]- Squash last N commits
File Management
ignore <pattern>- Add to .gitignoremakeignore <type>- Generate .gitignore template
Help & Information
gitcheatsheet- Interactive command referencegitok --help- Show helpgitok --version- Show versiongitok --update- Update to latest version
π§ Technical Features
- Cross-platform support (Linux, macOS, Windows)
- Automatic shell detection (bash, zsh, fish)
- Intelligent installation with profile configuration
- Auto-update system with GitHub API integration
- Safety confirmations for destructive operations
- Colorized output for better readability
- CI/CD integration with automated testing
π‘οΈ Safety Features
- Confirmation prompts for destructive operations
- Automatic backups before major changes
- Dry-run options for testing commands
- Comprehensive error handling
π Documentation
- Repository: https://github.com/okwareddevnest/gitok
- Issues: https://github.com/okwareddevnest/gitok/issues
- Contributing: See CONTRIBUTING.md
π€ Support
- π§ Email: softengdedan@gmail.com
- π Issues: https://github.com/okwareddevnest/gitok/issues
- π¬ Discussions: https://github.com/okwareddevnest/gitok/discussions
β Star this repo if Gitok boosts your Git productivity!
Created with β€οΈ by Dedan Okware