DEV Community

Cover image for when Github gets confused

Posted on • Updated on


when Github gets confused

Post #03

/> git config core.filemode = true

this value is default set to true and no doubt this can waste good amount of your time if your team has been using different OS

Testcase: you and your colleagues are working on same repo. Your colleague has windows and you got linux. he makes some changes.

You take pull and resume your work. Once you ready to push your code. You run git status and boom. Lots of files you haven't even touched after merging are now showing up as modified

This is because the editor you are using has different settings by host OS itself and that's why it's taking tabs and whitespaces in consideration

Solution: set that configuration value to "false" and it's all fine

Thanks for reading 😊

Top comments (1)

lukeswitz profile image
Luke Switzer • Edited

Solid one here, too many times writing a .gitignore for OS specific file removal. Keep it clean πŸ›€πŸ§Ό, A1 from day one.

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.