# Bug when saving to Github Branches with Archetype Designer **Category:** [Archetype Designer](https://discourse.openehr.org/c/archetype-designer/30) **Created:** 2021-10-25 18:23 UTC **Views:** 1069 **Replies:** 5 **URL:** https://discourse.openehr.org/t/bug-when-saving-to-github-branches-with-archetype-designer/1980 --- ## Post #1 by @erik.sundvall Hi! Archetype designer seems to have a bug when trying to save templates in branches for Github repositories. Opening a branch (for example our [project/MBA](https://github.com/kardapp/CKM-mirror/tree/project/MBA) branch of [Karolinska's CKM-mirror fork](https://github.com/kardapp/CKM-mirror)) and **reading** the files from it work fine, but when **saving** a template it gets comitted to the `master` branch instead of the `project/MBA` branch. This of course confuses the application (and the users) when it tries to read back from the `project/MBA` branch what it just erraneously saved to the `master` branch . See images below and log file for error mesages. So having everybody working in the `master` branch of a fork would work fine technically, but this bug stops us from setting up a smarter github flow with branches (intended for allowing more parallell non-conflicting development). Ping @borut.fabjan Error messages when saving: ![image|690x445, 50%](upload://iICEJvdTwQpxjP7Zw0Mi3ACIewT.png) Error message when restarting AD and trying to load the template: ![image|690x251, 50%](upload://iyiXzkLzZlDJSq6Ex9PqF0G9odB.png) Repository setup: ![image|690x351, 50%](upload://AacD2wbdgjzurIhdengQrh46tVn.png) Error log from console in Microsoft Edge browser when trying to save: [error-log-saving-template.md|attachment](upload://sU0MFHTO9ohq5tPpBrlKtT4RsGV.md) (99.0 KB) --- ## Post #2 by @erik.sundvall I got this response via mail from @borut.fabjan: > We are working on AD branch support & exposing some of the git/version control features. New version with fix is planned for mid november. --- ## Post #3 by @Paulmiller I have just been struggling with this exact same issue for the last couple of days. Should have checked here first! --- ## Post #4 by @borut.fabjan Fixed with AD 1.23.5 / AD@openehr.org updated --- ## Post #5 by @borut.fabjan Small pre-Xmas cookie - ![Screenshot 2021-12-02 at 09.52.24|689x397](upload://cF9JMt1hoCuMG1jYvySvSL3E6Jj.png) ;) --- ## Post #6 by @erik.sundvall 3 posts were split to a new topic: [Configurable working folders in Archetype Designer](/t/configurable-working-folders-in-archetype-designer/2138) --- **Canonical:** https://discourse.openehr.org/t/bug-when-saving-to-github-branches-with-archetype-designer/1980 **Original content:** https://discourse.openehr.org/t/bug-when-saving-to-github-branches-with-archetype-designer/1980