added .env to the gitignore file. Why wasn't this already there? 🤷🏼♂️
This commit is contained in:
parent
a12912b3bf
commit
407407e23d
2 changed files with 3 additions and 4 deletions
|
|
@ -3,9 +3,7 @@ import os
|
|||
|
||||
if __name__ == '__main__':
|
||||
# Clean up git repository
|
||||
os.system(f"cd {cleanup.repo_location}") # Pull the latest changes from the remote repository
|
||||
os.system("git reset --hard main") # Reset the repository to the 'main' branch, discarding all local changes
|
||||
os.system("git clean -fdx") # Remove all untracked files and directories, including ignored files
|
||||
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
|
||||
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
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -2,4 +2,5 @@
|
|||
*.cfg
|
||||
*.g2n
|
||||
*.DS_Store
|
||||
*.setup_complete
|
||||
*.setup_complete
|
||||
.env
|
||||
Loading…
Add table
Add a link
Reference in a new issue