List of useful commands I looked for, found and figured I'll definitely need them again later.
printenv | less
FILE="YOUR_FILE.png" && sips -Z 32 $FILE && echo "data:image/png;base64,$(cat $FILE | base64)" | pbcopy
git diff --cached
- w/o
--cached
the diff of ANY changes is shown
git log -p HEAD..FETCH_HEAD
git log --author="vlmaier" --pretty=format: --name-only | sort | uniq -c | sort -rg | head -10
git filter-branch --env-filter '
WRONG_EMAIL="..."
NEW_NAME="..."
NEW_EMAIL="..."
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then
export GIT_COMMITTER_NAME="$NEW_NAME"
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$WRONG_EMAIL" ]
then
export GIT_AUTHOR_NAME="$NEW_NAME"
export GIT_AUTHOR_EMAIL="$NEW_EMAIL"
fi
' --tag-name-filter cat -- --branches --tags
git log -p
git grep "..."
- specify a commit hash after "..." to be more specific
git log --since="2 weeks ago" .
git show [commit|tag]:filename
git log [commit|tag]..
git log -p -S '...'
git format-patch main..feature/test
git log origin..origin/feature/test | wc -l
git log --walk-reflogs branch
- reflog history is only available for the LOCAL repository
mvn versions:display-dependency-updates