Last active
February 15, 2023 10:03
-
-
Save gcollic/f6f093ec3805979669d0bf744e22c72a to your computer and use it in GitHub Desktop.
Replace the path to git by the path of this file in order to stop IntelliJ from messing with your staging area (no config for rename & co).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
inner() { | |
local cmd="$@" | |
local REGEX="(^|log.showSignature=false )(add|rm|mv) " | |
if [[ $cmd =~ $REGEX ]]; then | |
echo 'Stopping IntelliJ from being a not well-behaved git client. See IDEA-194592, IDEA-63391, IDEA-176961, ...' >&2 | |
return 1 | |
fi | |
git "$@" | |
} | |
inner "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍 😀