How to display a tab-idented source code with 4 spaces instead of 8 in the GitHub web interface?

A permanent solution

Use an .editorconfig file, e.g.:

A temporary (dynamic) solution

Use ?ts=4, e.g: