Can git automatically switch between spaces and tabs?

后端 未结 4 1121
离开以前
离开以前 2020-11-21 05:39

I use tabs for indentation in my python programs, but I would like to collaborate (using git) with people who use spaces instead.

Is there a way for git to automatic

4条回答
  •  误落风尘
    2020-11-21 06:01

    If you are on windows then you have a few extra steps to get @Olivier Verdier's solution to work.

    1. Download CoreUtils for windows
    2. After installing put the install location in your PATH (How to add a path variable)
    3. I renamed expand.exe to gexpand.exe as there is already a windows expand utility.

提交回复
热议问题