Skip to content

Instantly share code, notes, and snippets.

@ringods
Created December 14, 2014 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ringods/c738ae3769155779099d to your computer and use it in GitHub Desktop.
Save ringods/c738ae3769155779099d to your computer and use it in GitHub Desktop.
*.cs filter=tabspace4
*.xml filter=tabspace2
[filter "tabspace4"]
clean = cat
smudge = unexpand -t 4 --first-only
[filter "tabspace2"]
clean = cat
smudge = unexpand -t 2 --first-only
user@host:MyComponent$ git rm --cached -r .
user@host:MyComponent$ git reset --hard
user@host:MyComponent$ git add .
user@host:MyComponent$ git commit -m "Introducing space to tab conversion"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment