A tool to help you never to forget to commit and push your code changes.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
git-cube

README.md

Git Cube

Clean Up Before Exit: git edition

A tool to help you never to forget to commit and push your code changes.

Installing Git Cube

To install, you need to add a line to your .bashrc file:

source /path/to/git-cube

With that done, the next terminal you open will have Git Cube installed.

Usage

When you exit a terminal session by typing exit or pressing ctrl-d, git-cube will scan your current directory and if it's part of a git repository that contains uncommitted code, or commits that haven't been pushed to the remote, it will prompt you to take action before closing your session.

If you quit a second time without tidying up, git-cube won't stop you :)

Bugs

I wrote this in a few minutes and it is very unlikely to be perfect.

Please submit an issue through GitHub when you find a bug.