Added new script as the other was being a turd 💩
This commit is contained in:
parent
2809b0366d
commit
1427542ecb
2 changed files with 7 additions and 1 deletions
6
.fontfoldercleanup/git_reset_and_clean.sh
Executable file
6
.fontfoldercleanup/git_reset_and_clean.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/zsh
|
||||
# go to the root of the repository
|
||||
cd "$(git rev-parse --show-toplevel)"
|
||||
# reset the repository to the main branch and clean it
|
||||
git reset --hard main
|
||||
git clean -fdx -e .env/ -e .idea/
|
||||
|
|
@ -3,7 +3,7 @@ import os
|
|||
|
||||
if __name__ == '__main__':
|
||||
# Clean up git repository
|
||||
os.system(f"cd {cleanup.repo_location} && git reset --hard main && git clean -fdX") # Change to repo location, reset the repository, and clean untracked files except those in .gitignore
|
||||
os.system("./git_reset_and_clean.sh") # Change to repo location, reset the repository, and clean untracked files except those in .gitignore
|
||||
cleanup.remove_ds_store_files() # Remove .DS_Store files from the repository
|
||||
cleanup.remove_setup_complete_files() # Remove setup complete files from the repository
|
||||
cleanup.remove_empty_folders() # Remove empty folders from the repository
|
||||
Loading…
Add table
Add a link
Reference in a new issue