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.
- Enter the repository Name, and make sure to keep this repository “Private”.
- Customise setting as per you need I’ve added README File. Later on you can hit on Create repository Button.
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.
- Now we can see “Git version control” option under setting, Click on connect.
- After this we’ll get a window where we need to enter following things.
- Git repository URL
- Branch
- Directory Name (if the directory is not created this will create it)
After Clicking on Apply Button, we’ll again move to GitHub.
- Go to Settings in GitHub profile.
- Find Developer setting 'i.e. last option in settings menu.
- In Developer settings we’ll have to generate token by following steps.
- Click on ‘Personal Access Tokens’
- Select ‘Tokens (Classic)’ from expanded options
- From the top right corner click on ‘Generate new token’
- Under this select ‘Generate new token (classic)’
- Give a Note for token and select expiration period for your token.
- Once we are done with all the above steps we can generate the token by clicking on ‘Generate Token’.
- Now you have GitHub Generated token in your screen.
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.
- If the directory is not present in the repository branch, you’ll get this popup to create new directory.
- Once this is configured you’ll get screen like this with some details in Git version control option.
Congrats Power Platform Family!! You have successfully Integrated Git with Power Apps.
- Now you can find all the project files in your GitHub repository.
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.
- Now if one of the user makes any change in the application.
- In below example user has deleted Label1 from the application and saved the application.
- Now another user will have to Clicks on sync Button to see the changes.
- Once the application is synced, another user can also see the changed in the application.
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