From 9b4f85f1e157e55cc2a994ef603dcaa6724f90aa Mon Sep 17 00:00:00 2001 From: sanj <67624670+iodrift@users.noreply.github.com> Date: Tue, 30 Jul 2024 19:52:04 -0700 Subject: [PATCH] Auto-update: Tue Jul 30 19:52:04 PDT 2024 --- purge | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 purge diff --git a/purge b/purge new file mode 100755 index 0000000..c0bbe3e --- /dev/null +++ b/purge @@ -0,0 +1,17 @@ +#!/bin/bash + +# Fetch the latest changes from the remote repository +git fetch origin + +# Checkout the main branch +git checkout main + +# Delete files that are not on the main branch +git ls-tree -r main --name-only | xargs -I {} git rm -r {} + +# Commit the changes +git commit -m "Remove files not on the main branch" + +# Push the changes to the remote repository +git push origin main +