- GitL is a decentralised Git that lets you commit and view diffs of the version control system in your local folder.
Please read the following instructions on installing the project on your computer for controlling versions.
- Use a search engine to find the Homebrew (or other) Terminal install command for your platform and install it, and search for the Terminal command to install swipl using Homebrew and install it or download and install SWI-Prolog for your machine at SWI-Prolog.
- In Terminal settings (Mac), make Bash the default shell:
/bin/bash
- In Terminal, edit the text file
~/.bashrcusing the text editor Nano:
nano ~/.bashrc
- Add the following to the file
~/.bashrc:
export PATH="$PATH:/opt/homebrew/bin/"
- Check if
usr/local/binexists
ls -ld /usr/local/bin
- Create the directory if missing
sudo mkdir -p /usr/local/bin
- Link to swipl in Terminal
sudo ln -s /opt/homebrew/bin/swipl /usr/local/bin/swipl
- Download:
- this repository and its dependencies
- List Prolog Interpreter
- Lucian CI/CD
- Download the LPPM Repository:
mkdir GitHub
cd GitHub/
git clone https://github.com/luciangreen/List-Prolog-Package-Manager.git
cd List-Prolog-Package-Manager
swipl
['lppm'].
lppm_install("luciangreen","gitl").
../
halt.
-
In Shell:
cd gitlswipl -
To load the algorithm, enter:
['gitl.pl'].
-
In the folder
gitl_testat the same level asgitl, store your repositories, e.g.b. -
In the folder
gitl_dataat the same level asgitl, GitL stores the version control system and diffs between versions. -
commit("b","Description of changes.").- Commits repositorybto the version control system and creates an HTML file with the differences between versions and the description of changes.
- To see a list of repositories with changes and commit some of the changed ones, load with:
gitl_server(8000).
-
Go to
http://localhost:8000/gitl. -
Remember to edit the password in
../Philosophy/web-editor-pw.plbefore running. -
To view and change repositories, load with:
['web_editor_gitl_test.pl'].
web_editor_server(8000).
- Go to
http://localhost:8000/webeditor.
-
GitL is a version control system that saves each version of an algorithm repository so you can revert to a previous working version if needed. Before saving a backup version, run Lucian CI/CD to verify and make necessary modifications (see Lucian CI/CD), or run the following script, and then commit a version to GitL with it.
-
Prepare the script to run luciancicd and commit
chmod +x ./luciancicd.sh -
Run this script:
./luciancicd.sh my_repo_name "Description of changes."
-
GitL is a proper version control system that can store backups on a Virtual Private Server (VPS), allowing recovery in case of data loss and retrieval of previous versions. It assumes you have set up the VPS and the corresponding folders; then you can run the following script to save and retrieve backups from GitL.
-
Prepare the script to run luciancicd and commit
chmod +x ./sync.sh -
Run this script:
./sync.sh my_repo_name user_name x.x.x.x -
Prepare the script to run luciancicd and commit
chmod +x ./restore.sh -
Run this script:
./restore.sh my_repo_name user_name x.x.x.x
Lucian Green - Initial programmer - Lucian Academy
I licensed this project under the BSD3 License - see the LICENSE.md file for details