git – how can I configure interactive commits to always show a diff?

I want git commit to always do a git commit -v without typing the -v

I can’t see to be able to make a bash alias as it is two words with a space 🙁

  • git log <filename> doesn't show commit, but git log shows commit that edited the file
  • How can one change the timestamp of an old commit in Git?
  • Git commit with no commit message
  • git commit fix to project owner
  • What does MM stand for in git show --raw output for merge commits?
  • Renamed file, now SVN not allowing me to commit?
  • IntelliJ Idea: Git branches view with multiple projects
  • Ansible sudo_user not using the correct $HOME directory
  • plink Password Over and Over
  • How do you remove a tag from a remote repository
  • Tell git never to update a file
  • how can I avoid weird git diffs like this?
  • 2 Solutions collect form web for “git – how can I configure interactive commits to always show a diff?”

    You could add a function to ~/.bash_profile or similar

    git () {
      if [[ $1 = commit ]]
        command git commit -v "${@:2}"
        command git "$@"

    If you’re willing to type in a slightly different command
    (git won’t let you alias git built-in commands), set up a
    git alias

    git config --global 'commit -v'

    The drawback is you have to then git ci instead of
    git commit. Might be just as easy to remember the -v.

    Git Baby is a git and github fan, let's start git clone.