• July 17, 2017
    Announcement: New site design for Microsoft Community

    In July, Microsoft will roll out the first of ongoing site improvements aimed to modernize Microsoft Community and help customers get the most out of their community experience.

    • During the roll out period, you may see the old or new site design depending on your location

    • We expect the roll out to finish by 31 July

    Note: Past private message conversations will not move to the new site design. Please save any private messages you would like to keep.

     Learn more about the upcoming site improvements in this thread.

    Thank you for being part of Microsoft Community!


Git makes OneDrive sync constantly; resulting in high CPU usage

Magnus Anderson asked on


I've been using OneDrive to make sure I keep all my projects synced and safe. Recently I started using Git with VS Code. After a while I discovered that OneDrive was syncing something frequently, even tough I wasn't saving anything to the drive. It turns out that it's the Git projects FETCH_HEAD file that gets updated every minute that it resyncs on change.

It makes OneDrive sync this file every minute.

Is it possible to make OneDrive sync less frequently? Or perhaps to ignore the .git folder?

I don't know what to do with it as it is now, because it makes my computer slow down as OneDrive takes about 25% CPU because of this.

4 people had this question

Abuse history

The answered status icon Answer
shenlong replied on

You have to move

1. Move your working folder 📂 out of onedrive

2. Only put a bare git repository in one drive

3. Push your changes to the bare git repository after your commit. 

Most likely, your IDE is always locking and writing to the working folder, that's why putting in OneDrive will cause OneDrive to check for changes and continuously. 

-.- yoz...
Be the first person to mark this helpful

Abuse history