{"id":15798622,"url":"https://github.com/hacksore/gitrekt","last_synced_at":"2025-03-31T20:13:04.492Z","repository":{"id":145783973,"uuid":"610624356","full_name":"Hacksore/gitrekt","owner":"Hacksore","description":"comingsoon™","archived":false,"fork":false,"pushed_at":"2023-03-12T19:16:01.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-06T00:42:40.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hacksore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-07T06:31:22.000Z","updated_at":"2023-03-07T06:35:46.000Z","dependencies_parsed_at":"2023-07-15T17:15:06.360Z","dependency_job_id":null,"html_url":"https://github.com/Hacksore/gitrekt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacksore%2Fgitrekt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacksore%2Fgitrekt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacksore%2Fgitrekt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hacksore%2Fgitrekt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hacksore","download_url":"https://codeload.github.com/Hacksore/gitrekt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246531975,"owners_count":20792736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-05T00:42:49.939Z","updated_at":"2025-03-31T20:13:04.452Z","avatar_url":"https://github.com/Hacksore.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitrekt\nwtf is this?\n\nHow to get into the monopain?\n```\ngit clone https://github.com/Hacksore/how-to-use-eslint.git\ncd how-to-use-eslint\ngit checkout cursed\nyarn \u0026\u0026 yarn build\ngit checkout main\n```\n\nNow you are left with this 😞\n\n![image](https://user-images.githubusercontent.com/996134/223494979-d720c87e-9f46-486a-8cb8-4acd04e6d588.png)\n\n\ntl;dr dont use this rust code instead use a bash function as told by the prophet @theprimagen so here it is.\n\n```bash\nfunction gitclean {\n  # Find all directories that are not ignored by git and store them in an array\n  ignored_dirs=($(git ls-files --others --exclude-standard --directory))\n  # Loop through all directories that are not ignored by git\n  for dir in \"${ignored_dirs[@]}\"; do\n    # Check if the directory contains any non-gitignored files/folders\n    if [[ -z $(git ls-files --directory \"$dir\") ]]; then\n      # If the directory contains only gitignored files/folders, remove it\n      echo \"removing $dir\"\n      rm -rf \"$dir\"\n    fi\n  done\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacksore%2Fgitrekt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhacksore%2Fgitrekt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacksore%2Fgitrekt/lists"}