# Discourse-thema aanpassen met privé git-repo

**URL:** https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574
**Category:** Support
**Created:** [11 februari 2025 om 02:16 UTC](https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574 "2025-02-11T02:16:48Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Learnmore\_smart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/learnmore_smart/32/486029_2.png) [@Learnmore\_smart](https://meta.discourse.org/u/Learnmore_smart)
#### Post date: [11 februari 2025 om 02:16 UTC](https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574/1 "2025-02-11T02:16:48Z")

</div>

Hi!

“The theme cannot be installed because the Git repository is inaccessible. Are you sure you want to continue installing it?”

Why do I receive this error when importing theme from private github repo?

I used the correct ssh from github, I created a key in github.

Is it because of misplacement of the file for the CSS of discourse?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [11 februari 2025 om 08:45 UTC](https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574/2 "2025-02-11T08:45:54Z")

</div>

Did you use this method?:

> [@Installing a theme from a private Git repository](https://meta.discourse.org/t/installing-a-theme-from-a-private-git-repository/82584):
>
> bookmark This guide explains how to install a Discourse theme or theme component from a private GitHub repository. person_raising_hand Required user level: Administrator Summary This documentation covers the process of installing a Discourse theme or theme component from a private GitHub repository. It includes steps for generating and using SSH keys for secure access. You will need to have administrator access to both your Discourse instance and the GitHub repository you are installin…

---

<div class="post-metadata">

### Author: ![Learnmore\_smart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/learnmore_smart/32/486029_2.png) [@Learnmore\_smart](https://meta.discourse.org/u/Learnmore_smart)
#### Post date: [12 februari 2025 om 12:17 UTC](https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574/3 "2025-02-12T12:17:37Z")

</div>

I did, but at the step of add deploy key in Discourse and click install in discourse, mine said "The theme cannot be installed because the Git repository is inaccessible. Are you sure you want to continue installing it?”

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [12 februari 2025 om 14:54 UTC](https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574/4 "2025-02-12T14:54:33Z")

</div>

> [@Learnmore\_smart](#):
>
> step of add deploy key in Discourse

No, the SSH key is generated in Discourse and must be added to GitHub 🙂 (ie the other way around)

---

<div class="post-metadata">

### Author: ![Learnmore\_smart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/learnmore_smart/32/486029_2.png) [@Learnmore\_smart](https://meta.discourse.org/u/Learnmore_smart)
#### Post date: [12 februari 2025 om 22:46 UTC](https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574/5 "2025-02-12T22:46:16Z")

</div>

Yes, I did this, I added the key in GitHub but it’s not working.

---

<div class="post-metadata">

### Author: ![jsimon6](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@jsimon6](https://meta.discourse.org/u/jsimon6)
#### Post date: [26 februari 2025 om 14:15 UTC](https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574/6 "2025-02-26T14:15:32Z")

</div>

Same issue here.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [26 februari 2025 om 14:50 UTC](https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574/7 "2025-02-26T14:50:56Z")

</div>

Hi,

@Learnmore_smart @jsimon6

I tested again the guide Robert linked above ([Installing a theme from a private Git repository](https://meta.discourse.org/t/installing-a-theme-from-a-private-git-repository/82584)), and it works as expected.

> **Images**
>
> ![The image shows a GitHub Installer window with the option to install a repository, and it is set to install from a GitHub repository link. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/6/e/a/6eae0e3dca44fa6dc625d2fcd03c3c7c823cae48.png)
> 
> ![The image shows a GitHub page for adding a new deploy key with a provided key and title for testing purposes. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/d/6/d/d6d9ef3492f45fa9653518db53dd11646e7a15ee.png)
> 
> ![The image displays a GitHub repository's deploy keys page, explaining the use of SSH keys for read or write access to a repository and the security risks associated with them, as well as an example of a deploy key. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/e/e/1/ee1aef97812b18c3a3f7015c2a0b335f2c49768f.png)
> 
> ![The image shows a GitHub repository page for a "todo" theme used for Discourse, with sections for adding components and viewing the code. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/f/d/f/fdfe9253cba4212a126ff7d2f12d0f74d891e13b.png)

Did you follow the steps? Give it another try report back if you encounter an issue.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [26 februari 2025 om 15:01 UTC](https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574/8 "2025-02-26T15:01:43Z")

</div>

Hi @Learnmore_smart welcome 👋  
did you get it working yet?

I wrote that guide and I just tested. it is working exactly as expected. make sure you have admin level access to the private repo and are using the SSH repo address when you install it on your forum.

---

<div class="post-metadata">

### Author: ![Learnmore\_smart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/learnmore_smart/32/486029_2.png) [@Learnmore\_smart](https://meta.discourse.org/u/Learnmore_smart)
#### Post date: [3 maart 2025 om 20:02 UTC](https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574/10 "2025-03-03T20:02:50Z")

</div>

Our team is currently developing another feature, we will come back to this I guess around a few weeks. Thanks guys!

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [13 november 2025 om 17:29 UTC](https://meta.discourse.org/t/discourse-customize-theme-with-private-git-repo/351574/12 "2025-11-13T17:29:36Z")

</div>


