Search By Label
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch <path to the file or directory>' --prune-empty --tag-name-filter cat -- --all
pip3 install git-filter-repo
git filter-repo --path <path to the file or directory> --invert-paths
git filter-branch --env-filter ' OLD_EMAIL="old-test@test.com" CORRECT_NAME="Oswaldo Pineda" CORRECT_EMAIL="new-test@test.com" if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ] then export GIT_COMMITTER_NAME="$CORRECT_NAME" export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" fi if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ] then export GIT_AUTHOR_NAME="$CORRECT_NAME" export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL" fi ' --tag-name-filter cat -- --branches --tags
git stash list
git stash show
git stash show -p
git stash show -p stash@{1}
git stash show -p 1
git log -g main
git stash show -p stash@{0}
git grep [options] pattern