REVIEW: Integrated Version Control with Git

As you can see in the latest Wappler 2.1.2 we have added an Wappler Native integration with the well known version control system GIT.

This will give you some great advantage in maintaining your Wappler projects by having a full control of the changes and also being able to revert and move to other point in history if something goes wrong.

If you haven’t used Git yet, please check this very good General Introduction to Git first

Wappler Version Control

With our initial implementation of version control in Wappler, you can create a Git repository for every Wappler project you wish to keep track on. Having a repository is great way to have a good backup of all your project files and their changes.

The Git Manager

The Git Manager panel is located as a second option in the left bar
image

Creating a New Local Repository

When you want to add a repository for your current project, just click on the “create Repository” button

image

Commiting files

You will immediately see a list of files from your project to commit to the repository. Initially thisse will be just all files from your project:

Just enter a nice log message about what you are committing and select the files.


In this case we are selecting all files

Now you will see that we have a new history entry with the message you entered, and no more files are to be committed:

Adding new files

Lets edit our main index.html and add something to it like the App Connect framework. After saving the file and refreshing the Git Manager, you will see that a bunch of new files have appeared and that the index.html is changed:

A - means new file is added
M - means file is modified

So lets commit this

Review history

After the commit you will see immediately that our history grows

image

Lets add some more, changes and commit them:
image

As you can see every commit is now logged with a nice message

Implementation

The repository is stored locally in your project folder under the .git sub folder

Integration with File Manager

In the file manager you can also see changed files that aren’t committed yet into the repository.
image

Reverting files

If you like to undo your file changes, to the last commit version, you can just revert the file:

This will revert the whole file to the version you have lastly committed.

More to come,

In the next updates more great Git version control functionality will be coming up. Like:

and more to come:

So let us know what you thing of the Git version control integration and what else would you like to see.

NOTE: Git features are experimental, so you have to make sure you have the experimental setting on and restart Wappler to see them.

Community Page
Last updated: