# Import an existing project with its git history

**URL:** <https://discourse.nodered.org/t/import-an-existing-project-with-its-git-history/2797>\
**Category:** General\
**Created:** [3 September 2018 09:37 UTC](https://discourse.nodered.org/t/import-an-existing-project-with-its-git-history/2797 "2018-09-03T09:37:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bebR](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bebr/32/19752_2.png) [@bebR](https://discourse.nodered.org/u/bebR)\
**Post date:** [3 September 2018 09:37 UTC](https://discourse.nodered.org/t/import-an-existing-project-with-its-git-history/2797/1 "2018-09-03T09:37:57Z")

</div>

Hi,

I started to use Node-RED a few weeks ago. Actually, this was just to test and see if I can use it for a home security system. As usual, I created a git repository from the node-red folder and made commits.

Now that my POC is completed, I'd like to go on with the projects feature and retrieve my git history.

But I have problem reimporting the existing as I was using an system-generated key. What should I do? Change to a personal key, commit, push and then clone to the new node-red instance with the projects feature enabled?

Thanks!

---

<div class="post-metadata">

**Author:** ![bebR](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bebr/32/19752_2.png) [@bebR](https://discourse.nodered.org/u/bebR)\
**Post date:** [3 September 2018 09:46 UTC](https://discourse.nodered.org/t/import-an-existing-project-with-its-git-history/2797/2 "2018-09-03T09:46:59Z")

</div>

Ok, I found the key in the `.config.json` file, and now I get my flows back, with all the git history.

One question still remains: can I change the generated key without losing anything?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [3 September 2018 11:49 UTC](https://discourse.nodered.org/t/import-an-existing-project-with-its-git-history/2797/3 "2018-09-03T11:49:41Z")

</div>

You can change the key via the project settings dialogue and it will reencrypt with you new key.

---

<div class="post-metadata">

**Author:** ![bebR](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bebr/32/19752_2.png) [@bebR](https://discourse.nodered.org/u/bebR)\
**Post date:** [3 September 2018 12:51 UTC](https://discourse.nodered.org/t/import-an-existing-project-with-its-git-history/2797/4 "2018-09-03T12:51:23Z")

</div>

Thanks, I get my flows working again.
