Using Git for Version Control with Power Apps.


Are you tired of struggling with version control in your Power Apps projects? Git integration is the solution you've been waiting for. Integrating Git with Power Apps can significantly improve your development workflow by providing version control and collaboration capabilities. In this step-by-step guide, we'll walk you through how to set up and use Git integration in Power Apps.

First we’ll start with Creating Repository in Git.
  • Simply click on “New” Button on top right corner.
using git for version control
  • Enter the repository Name, and make sure to keep this repository “Private”.
using git for version control
  • Customise setting as per you need I’ve added README File. Later on you can hit on Create repository Button.
using git for version control
Once Repository is created we can move to Power Apps.
  • Go to App Settings
  • Under Upcoming features > Experimental
  • Look for “Show the Git Version Control Settings” and turn this feature ON.
using git for version control
  • Now we can see “Git version control” option under setting, Click on connect.
using git for version control
  • After this we’ll get a window where we need to enter following things.
  1. Git repository URL
  2. Branch
  3. Directory Name (if the directory is not created this will create it)
using git for version control
After Clicking on Apply Button, we’ll again move to GitHub.
  • Go to Settings in GitHub profile.
using git for version control
  • Find Developer setting 'i.e. last option in settings menu.
using git for version control
  • In Developer settings we’ll have to generate token by following steps.
  1. Click on ‘Personal Access Tokens’
  2. Select ‘Tokens (Classic)’ from expanded options
  3. From the top right corner click on ‘Generate new token’
  4. Under this select ‘Generate new token (classic)’
using git for version control
  • Give a Note for token and select expiration period for your token.
using git for version control
  • Once we are done with all the above steps we can generate the token by clicking on ‘Generate Token’.
using git for version control
  • Now you have GitHub Generated token in your screen.
using git for version control
Let’s get back to the Power Apps.
  • We’ll continue on Power Apps where we have left after following step 2.
  • Enter Username and Personal Access token in the respective fields.
using git for version control
  • If the directory is not present in the repository branch, you’ll get this popup to create new directory.
using git for version control
  • Once this is configured you’ll get screen like this with some details in Git version control option.
using git for version control
Congrats Power Platform Family!! You have successfully Integrated Git with Power Apps.
  • Now you can find all the project files in your GitHub repository.
using git for version control
With Git integration in Power Apps, two developers can work simultaneously on the same app, making collaborative app development more efficient and productive.
In Below example we will try to show you how the application is getting updated on real-time basis while one user is making any changes in application.
  • We’ve opened same application for two users.
using git for version control
  • Now if one of the user makes any change in the application.
  1. In below example user has deleted Label1 from the application and saved the application.
  2. Now another user will have to Clicks on sync Button to see the changes.
using git for version control
  • Once the application is synced, another user can also see the changed in the application.
using git for version control
In conclusion, Git integration in Power Apps not only simplifies collaboration but also empowers developers to build and improve apps more effectively. By enabling concurrent development, it enhances productivity and fosters a culture of seamless teamwork. Embrace Git integration to take your Power Apps development to the next level, and unlock the full potential of collaborative app building.

If you have any doubts or questions related to this blog, you can Contact us by Email: info@voxtus.com

Sumit Joshi
Power Apps Consultant