Wrap commands in check for filename
Factor out register setup and check for file, then git
Added Windows keybindings
Cleanup