Skip to content

Instantly share code, notes, and snippets.

@exupero
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exupero/2c47bac19bece5abe655 to your computer and use it in GitHub Desktop.
Save exupero/2c47bac19bece5abe655 to your computer and use it in GitHub Desktop.
git-review
#!/bin/bash
if [[ -n "$TMUX" ]]; then
tmux send "git diff --cached" C-m \; split-window -v \; send "git commit $* && exit" C-m
else
git commit $*
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment