git update-index --chmod=+x <file>“The JAVA_HOEME environment variable does not point to a working 32-bit JDK or JRE”
The SMARTGIT_JAVA_HOME variable is not set properly.
The solution is to simply install a 32-bit JDK and set the SMARTGIT_JAVA_HOME environment variable accordingly (e.g. SMARTGIT_JAVA_HOME to c:\Program Files (x86)\Java\jdk1.8.0_111.
git commit --allow-empty -m "Trigger build"
git grep <regexp> $(git rev-list --all)
(source)
git grep <regexp> $(git log --pretty=format:"%H" README.md)
FILE_BASE=README ; FILE_EXT=.md ; FILE="$FILE_BASE$FILE_EXT" ; i=0 ; for HASH in $(git log --oneline "$FILE" | awk '{print $1}') ; do git show $HASH:"$FILE" > "$FILE_BASE-$i-$HASH$FILE_EXT" ; ((++i)) ; done
git branch -a | grep -oP "remotes/\K\S*" | xargs -n1 -I{} bash -c "git show {}:README.md 2>/dev/null | wc -l"
The file must contain LF for a non-zero result.
git ls-files -i --exclude-standard
(source)
The git push command often fails if the remote contains changes which have not yet been applied to the local branch.
To get a timely notification, add the following command to your ~/.bashrc file (play is provided by SoX in the sox package on Fedora):
git() {
if [ ${1} == "push" ]; then
/usr/bin/git ${@} || play -q -n synth 0.05 sin 480
else
/usr/bin/git "${@}"
fi
}
Or, in zsh (needs SoX – brew install sox):
function git {
if [ ${1} = "push" ]; then
/usr/bin/git ${@} || play -q -n synth 0.05 sin 480
else
/usr/bin/git "${@}"
fi
}
This example uses the play binary but other commands capable of producing a “beep” sound can also work.
To create meaningful diffs between the binary .doc files, perform the following steps:
Install the antiword package with apt/dnf.
Add the following section to your ~/.gitconfig file:
[diff "word"]
textconv = antiword
.git/info/attributes and add the following:*.doc diff=word
git show, git diff, git diff --staged, etc.) should now show meaningful diffs for .doc files.