# Git clone to library for IDE 2.x on W10?

**URL:** <https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774>\
**Category:** IDE 2.x\
**Created:** [October 17, 2025, 3:22pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774 "2025-10-17T15:22:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![PBrooks](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@PBrooks](https://forum.arduino.cc/u/PBrooks)\
**Post date:** [October 17, 2025, 3:22pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774/1 "2025-10-17T15:22:27Z")

</div>

Any idea how I can Git clone to the Arduino library for IDE 2.x on W10?

I can do this on my Linux machine (just cd to ~/.arduino15/libraries first) and it is a great way of installing large external libraries (and keeping them up to date).

On Windows there is no ‘libraries’ directory under Arduino15 (which is the IDE2.x) but there is for IDE1.x (C:\Users\\Documents\Arduino\libraries).

So at the moment it looks like the IDE 1.x is more useful to me on Windows, which is a shame.

---

<div class="post-metadata">

**Author:** ![maxgerhardt](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/maxgerhardt/32/1127032_2.png) [@maxgerhardt](https://forum.arduino.cc/u/maxgerhardt)\
**Post date:** [October 17, 2025, 3:24pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774/2 "2025-10-17T15:24:39Z")

</div>

> [@PBrooks](#):
>
> C:\Users\\<user\>\Documents\Arduino\libraries

This should equally work for Arduino IDE 2?

---

<div class="post-metadata">

**Author:** ![PBrooks](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@PBrooks](https://forum.arduino.cc/u/PBrooks)\
**Post date:** [October 17, 2025, 3:35pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774/3 "2025-10-17T15:35:28Z")

</div>

Doesn’t seem to - I’ve Git cloned a library there and it appears in 1.x but not in 2.x (Library Manager).

For info I’m using W10 LTSC, and (as you’d expect) had 1.x installed first.

---

<div class="post-metadata">

**Author:** ![maxgerhardt](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/maxgerhardt/32/1127032_2.png) [@maxgerhardt](https://forum.arduino.cc/u/maxgerhardt)\
**Post date:** [October 17, 2025, 3:50pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774/4 "2025-10-17T15:50:14Z")

</div>

Can't confirm this at all.

For testing I've downloaded a library that was not installed into the abovementioned folder

[https://github.com/adafruit/Adafruit\_AHTX0/archive/refs/tags/2.0.5.zip](https://github.com/adafruit/Adafruit_AHTX0/archive/refs/tags/2.0.5.zip)

 ![grafik](https://europe1.discourse-cdn.com/arduino/original/4X/9/9/6/99690529114a4f7a84e3bf31f19015a35c6f121a.png)

And it shows up in the examples just as I expected.

 ![grafik](https://europe1.discourse-cdn.com/arduino/original/4X/5/6/6/566661ca4a6f7f876ba2e3d5e959d9ad51f95923.png)

---

<div class="post-metadata">

**Author:** ![maxgerhardt](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/maxgerhardt/32/1127032_2.png) [@maxgerhardt](https://forum.arduino.cc/u/maxgerhardt)\
**Post date:** [October 17, 2025, 3:54pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774/5 "2025-10-17T15:54:37Z")

</div>

Also this is my File -\> Preferences, in which `libraries` is a subfolder.

 ![grafik](https://europe1.discourse-cdn.com/arduino/original/4X/0/a/2/0a2119957fd0d35b75dc7244739950782fa485e6.png)

---

<div class="post-metadata">

**Author:** ![PBrooks](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@PBrooks](https://forum.arduino.cc/u/PBrooks)\
**Post date:** [October 17, 2025, 4:24pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774/6 "2025-10-17T16:24:06Z")

</div>

Ah, yes, it seems that the Libraries folder (for ‘Custom Libraries’) is created under the ‘Sketchbook location’ - as set in Preferences (as you show) and this is true for both versions.

I had changed the ‘Sketchbook location’ in 2.x though to one that made more sense, to me at least - I’m a bit old school and generally don’t use the (‘you will conform!’) Windows ‘Documents’ etc. folders. 😀

So, I think I have proved that it is possible for a user who updates to 2.x to then get thoroughly confused !

Many thanks for your help. I hope this topic helps anyone else with the same issue in the future.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [October 17, 2025, 5:25pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774/7 "2025-10-17T17:25:24Z")

</div>

> [@PBrooks](#):
>
> On Windows there is no ‘libraries’ directory under Arduino15 (which is the IDE2.x)

Arduino IDE 2.x does indeed create that folder on the first run after a fresh installation. However, it won't mess with it after that, so maybe you deleted it at some point?

However, the question is moot because you should not use that location to install your own libraries. That folder is only intended to be used for the fundamental "built-in" libraries that are expected to always be installed.

You should always install libraries to the `libraries` subfolder of your Arduino sketchbook folder.

---

<div class="post-metadata">

**Author:** ![PBrooks](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@PBrooks](https://forum.arduino.cc/u/PBrooks)\
**Post date:** [October 17, 2025, 5:44pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774/8 "2025-10-17T17:44:00Z")

</div>

Thanks, I get that.

If you change your Sketchbook folder though in Preferences you would have to install your custom Libraries again?

On reflection it would be good to have the option (even greyed out but enabled with a check box) to allow the (competent) user to choose a static, unchanging custom library location.

---

<div class="post-metadata">

**Author:** ![sonofcy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sonofcy/32/1283617_2.png) [@sonofcy](https://forum.arduino.cc/u/sonofcy)\
**Post date:** [October 17, 2025, 6:09pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774/9 "2025-10-17T18:09:37Z")

</div>

I use IDE1 and IDE2 back and forth all the time. The Libraries are only 1 copy and used by both IDE's. I don;t knw what you did but it didn't help.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [October 17, 2025, 10:10pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774/10 "2025-10-17T22:10:30Z")

</div>

> [@PBrooks](#):
>
> If you change your Sketchbook folder though in Preferences you would have to install your custom Libraries again?

Nah, just copy the contents of the previous folder to the new location.

> [@PBrooks](#):
>
> choose a static, unchanging custom library location.

If you don't want the location to change, just don't change the "Sketchbook location" preference.

> [@sonofcy](#):
>
> The Libraries are only 1 copy and used by both IDE's.

Each version series does use different locations for the "built-in" libraries. In Arduino IDE 1.x, they are bundled with the application installation, under its `libraries` subfolder. In Arduino IDE 2.x, they are instead under the data folder (e.g., `/Users/<username>/Library/Arduino15/libraries`).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [April 15, 2026, 10:10pm UTC](https://forum.arduino.cc/t/git-clone-to-library-for-ide-2-x-on-w10/1409774/11 "2026-04-15T22:10:31Z")

</div>

Closed on April 15, 2026, 10:10pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
