is-git-dirty
Check if a repository has untracked or added files
jquery.dirtyforms
Dirty Forms is a jQuery plugin to help prevent users from losing data when editing forms.
jquery.are-you-sure
A light-weight jQuery "dirty forms" Plugin - it monitors HTML forms and alerts users to unsaved changes if they attempt to close the browser or navigate away from the page. (Are you sure?)
git-state
Get the current state of any git repository