See local commits not yet pushed to remote
git config --global alias.unpushed "diff origin/$(git name-rev --name-only HEAD)..HEAD --name-status"
git unpushed
Script that creates an "unstable" branch (if one does not exist) and commits all changes to it.
if [ -z "`git branch | grep unstable`" ]; then
git checkout -b unstable
else
git checkout unstable
fi
git add --all
git commit -a -m "`date +'Build on %F at %r'`"
exit 0