Skip to main content

Version Control

The extension features a simplified interface for Git-based version control. This is a massive improvement on the typical "-R1", "-R2" naming convention you see in many shops. Instead, you changes whenever they are made and finalized so that you can keep a log of all revisions and easily revert to a previous version if needed, without cluttering up your filesystem.

info

To use version control, you will also need to install Git, which powers this feature under the hood. You can download Git here.

In the Version History panel, click a commit to check it out. This is equivalent to checking out that commit in git. You will be in a "detached HEAD" state, meaning that any changes you make will not be saved to the repository. To save your changes, you must commit them. To return to the latest commit, click the top commit in the "Version History" panel. This will return you to the "master" branch (equivalent to git checkout <commit hash>).

Right clicking a commit in the Version History panel will also display the option to "Reset here". Upon confirmation, this will reset the repository to the state of the selected commit. Equivalent to git reset --hard <commit hash>.

caution

This will permanently discard any changes made since the selected commit. This action cannot be undone.

There are three buttons:

  • Initialize: Initializes a git repository in the current working directory if one does not already exist. This is equivalent to git init

  • Commit: Commits all changes to the "master" branch of the repository. You will be prompted to enter a commit message after clicking the button. This is equivalent to git add . && git commit -m <commit message>

  • Discard Changes: Discards all changes since the last commit. This is equivalent to git reset --hard