{"id":19380708,"url":"https://github.com/f1x3d/git-tabs-spaces-converter","last_synced_at":"2026-05-18T07:08:52.239Z","repository":{"id":56571259,"uuid":"308674630","full_name":"f1x3d/git-tabs-spaces-converter","owner":"f1x3d","description":"Script for adding a git filter to locally convert between tabs and spaces","archived":false,"fork":false,"pushed_at":"2020-10-30T20:55:17.000Z","size":768,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T06:19:16.475Z","etag":null,"topics":["git","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f1x3d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-30T15:44:29.000Z","updated_at":"2020-10-31T13:37:25.000Z","dependencies_parsed_at":"2022-08-15T21:10:29.274Z","dependency_job_id":null,"html_url":"https://github.com/f1x3d/git-tabs-spaces-converter","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/f1x3d%2Fgit-tabs-spaces-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1x3d%2Fgit-tabs-spaces-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1x3d%2Fgit-tabs-spaces-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1x3d%2Fgit-tabs-spaces-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f1x3d","download_url":"https://codeload.github.com/f1x3d/git-tabs-spaces-converter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240517216,"owners_count":19814156,"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":["git","hacktoberfest"],"created_at":"2024-11-10T09:14:36.640Z","updated_at":"2026-05-18T07:08:47.219Z","avatar_url":"https://github.com/f1x3d.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tabs-Spaces Converter for Git\n\nScript for adding a git filter to locally convert between tabs and spaces, without forcing every repository member to use the same indentation characters.\n\nDuring checkout, tabs/spaces will be converted into the preferred characters to use locally.\n\nDuring staging, the characters you use will be converted back to tabs/spaces, producing no extra diffs.\n\n## How it works\n\nSee [this answer on StackOverflow](https://stackoverflow.com/a/2316728) and [this section of the Pro Git book](https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#_keyword_expansion).\n\n## Usage\n\n### Prerequisites\n\n* Windows: none (dependencies are built-in)\n* Linux: install `coreutils` (e.g., `sudo apt install coreutils`)\n* Mac OS: install `coreutils` (e.g., `brew install coreutils`)\n\n### Installation\n\n1. Open terminal (for Windows, Git Bash or whatever you use).\n2. `cd` into the root folder of your repository (i.e., the one with `.git` folder in it).\n3. Run `src/install.sh \u003ctype\u003e [tab size]`, where\n    * `\u003ctype\u003e` is either `tabs` or `spaces` \u0026mdash; determines what characters do you want to have locally;\n    * `[tab size]` is a number of spaces in a tab (optional; defaults to 4).\n\n    For example, `src/install.sh tabs 8` or `src/install.sh spaces 2`\n4. Open the `.git/info/attributes` file and add/remove file extensions you want to use this script with. Use the `*.py` line as an example.\n5. Stash your changes, if any, and delete all tracked files in the repository folder.\n6. Run `git checkout HEAD -- *`\n7. Enjoy your favorite indentation characters!\n\n### Uninstallation\n\n1. Open terminal (for Windows, Git Bash or whatever you use)\n2. `cd` into the root folder of your repository (i.e., the one with `.git` folder in it)\n3. Run `src/uninstall.sh`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff1x3d%2Fgit-tabs-spaces-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff1x3d%2Fgit-tabs-spaces-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff1x3d%2Fgit-tabs-spaces-converter/lists"}