msysgit 提交编码
我在 Windows Vista 上使用 msysgit。 我对它还很陌生,在我第一次向 github 提交代码时,另一位成员说所有选项卡都被空格替换了。 msysgit 有可能改变这个吗? 我正在VS2008中编辑文件。 这是刚刚出现的 c Sharp .cs 文件。
I am using msysgit on windows vista. I am still very new to it and on my first committed code to github another member said that all the tabs were replaced with spaces. Could it be possible that msysgit is changing this? I am editing the files in VS2008. Is is just come c sharp .cs files.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
msysgit 不太可能用空格替换制表符,这更有可能是您的编辑器设置。
您应该以遵循您正在使用的项目的既定约定的方式配置编辑器。
但是,除非相关文件是
Makefile
,否则我认为您的编辑器设置是正确的。 :)It's unlikely that msysgit replaced the tabs with spaces, that was more likely your editor settings.
You should configure your editor in such a way that you follow the established conventions of the project you're working with.
However, unless the file in question was a
Makefile
, my opinion is your editor settings are correct. :)