uhhh
is a tiny command line tool for when you forget what you were working on. Run it in any git repo to refresh your memory.
uhhh
You were working on a tool that interacts with a Git repository and uses an Ollama model to summarize commits.
* The recent commit `57467c7` cleaned up the usage instructions and removed redundant comments.
* The commit `0fa3a3a` introduced a function to truncate diffs, likely for brevity in the output.
Requires Ollama installed, and enough memory to run your model of choice.
You can install uhhh
by downloading the script and placing it in a directory that's part of your system's PATH
.
-
Download the Script
Clone the repository.
git clone https://github.com/nhagar/uhhh.git
-
Make the Script Executable
Navigate to the directory containing the
uhhh
script and modify its permissions to make it executable.chmod +x uhhh
-
Move the Script to a Directory in
PATH
To run
uhhh
from anywhere, move it to a directory that's included in your system'sPATH
.-
Using
/usr/local/bin
:sudo mv uhhh /usr/local/bin/
Ensure
~/bin
is in yourPATH
. Add the following to your shell's configuration file if needed (e.g.,~/.bashrc
,~/.zshrc
):export PATH="$HOME/bin:$PATH"
Reload the configuration:
source ~/.bashrc # or source ~/.zshrc
-
-
Verify Installation
Open a new terminal window and run:
uhhh -h
You should see the help message with usage instructions.
uhhh
can be invoked from any directory within a Git repository.
-
-m MODEL
: Specify the Ollama model to use. Default:gemma2
-
-b BRANCH
: Specify the Git branch to fetch commits from. Default: Current branch -
-n NUM_COMMITS
: Specify the number of recent commits to fetch. Default:3
-
-h
: Display the help message.
-
Basic Usage (Default: 3 Commits, Current Branch,
gemma2
Model)uhhh
-
Specify the Number of Commits
Fetch the five most recent commits.
uhhh -n 5
-
Specify a Different Ollama Model
Use
llama3.2
instead.uhhh -m llama3.2
-
Specify a Different Git Branch
Fetch commits from the
develop
branch.uhhh -b develop