|
|
@ -4,6 +4,6 @@ set -euo pipefail
|
|
|
|
export FILTER_BRANCH_SQUELCH_WARNING=1
|
|
|
|
export FILTER_BRANCH_SQUELCH_WARNING=1
|
|
|
|
git branch -D filtered
|
|
|
|
git branch -D filtered
|
|
|
|
git switch -c filtered
|
|
|
|
git switch -c filtered
|
|
|
|
git branch -u filtered/filtered
|
|
|
|
|
|
|
|
git filter-branch -f --tree-filter "rm -f $(rg --files-without-match 'SPDX-License-Identifier: (L)?GPL-3.0-or-later' -g '/u??/**/*' | tr '\n' ' ')" HEAD
|
|
|
|
git filter-branch -f --tree-filter "rm -f $(rg --files-without-match 'SPDX-License-Identifier: (L)?GPL-3.0-or-later' -g '/u??/**/*' | tr '\n' ' ')" HEAD
|
|
|
|
|
|
|
|
git push -f -u filtered filtered
|
|
|
|
git switch -
|
|
|
|
git switch -
|
|
|
|