Menu
ELECTRONgeek
ELECTRONgeek
Git logo

I moved my Git repo to a new folder and now I’m getting a ton of modified files, help!

Posted on February 28, 2018January 3, 2019 by egeek

I’m running Windows Subsystem for Linux (WSL) on Windows 10. I downloaded a Git repo under the WSL mount. I noticed that whenever I used Windows/Visual Studio Code to save files, the permissions would reset to 000. I spoke with a colleague and his setup was different than mine.

I had the Git repo inside WSL mount.

His Git repo was on the Windows/C-drive mount and he had a soft-link to the repo. He did not face the permission issue.

So after I pushed out my latest changes, I decided to move my repo. This was the easy part. I made a softlink using

ln /directory/ /linkdirectory/

However, after the repo was moved and I modified one file, it was a bit unnerving to find out that ALL the files were listed as modified. I browsed around and saw that this could’ve been due to the line-endings on Linux vs. Windows.

It wasn’t until I updated these two settings that the rotten state in Denmark became a happy state:

git config core.autocrlf true
git config core.filemode false

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Using MySQL In-App on Azure App Service
  • On-prem vs. IaaS vs. PaaS vs. SaaS
  • 1024 x 768 Display Resolution on External Monitor
  • WordPress MySQL Database options on Azure
  • 2019 Toddler Education

Archives

  • July 2020
  • June 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • February 2018
  • July 2017
  • June 2017
  • December 2016

Categories

  • app service
  • Azure
  • mysql in-app
  • Tech
  • Uncategorized
  • windows
  • Wordpress

Tags

1024x768 android app appinit application initialization app not installed app service assistant azure azure app service azure database for mysql configuration display resolution easy mysql import fun game git google play in-app kids microsoft microsoft windows 10 migration mysql mysql in-app password performance php cms plugin repo site extension subsystem linux toddler education virtual machines windows wordpress wordpress buddy wordpress redirection xamarin
©2022 ELECTRONgeek | WordPress Theme by Superb Themes