# How to version control native app and web app by git

**URL:** <https://forum.ionicframework.com/t/how-to-version-control-native-app-and-web-app-by-git/129237>\
**Category:** ionic-v3\
**Created:** [April 29, 2018, 4:14am UTC](https://forum.ionicframework.com/t/how-to-version-control-native-app-and-web-app-by-git/129237 "2018-04-29T04:14:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [April 29, 2018, 6:26am UTC](https://forum.ionicframework.com/t/how-to-version-control-native-app-and-web-app-by-git/129237/2 "2018-04-29T06:26:15Z")

</div>

A couple of thoughts about that in the following post:

> [@\[SOLVED\]\[PWA\] Cordova & PWA: code, branch, design and index.html](https://forum.ionicframework.com/t/solved-pwa-cordova-pwa-code-branch-design-and-index-html/126225/8):
>
> After playing a bit I gonna follow the way we discussed 1 git repo aka 1 single branch Gulp scripts to switch the configuration between Cordova and PWA Kind of factory patterns to handle the code Some more explanations and details: Configuration and index.html Firstly I have noticed that using this.platform.is('cordova') to switch between Cordova or PWA isn’t really reliable for test purpose. Sometimes the Chrome debugger load a Cordova app when I was expecting a PWA (some refresh/redirect…

---

_[View the full topic](https://forum.ionicframework.com/t/how-to-version-control-native-app-and-web-app-by-git/129237)._
