开发者

Github for mac diff options

开发者 https://www.devze.com 2023-03-18 18:54 出处:网络
Is there a way to configure github for mac to do a diff with the -w option to ignore whitespace? We are in the process of re开发者_如何学编程placing all tabs with spaces in our project but when looki

Is there a way to configure github for mac to do a diff with the -w option to ignore whitespace?

We are in the process of re开发者_如何学编程placing all tabs with spaces in our project but when looking at the diffs for these commits in Github:mac the whole file is marked as changed which makes it hard to see the actual changes.


Why do you have "actual" changes mingled in with the tab changes? Stash your current work, do one giant sweep to clean up the whitespace, push that, then go back to your regularly scheduled programming. Sure, you'll hit a few merge conflicts with anything you were working on before the whitespace fix, but that's unavoidable.

0

精彩评论

暂无评论...
验证码 换一张
取 消