How to use Git on PaganOS
Cloning a repository
git clone https://git.paganlinux.eu/nazwa-repo.git If the repo requires authentication, use a token from your profile:
git clone https://TOKEN:@git.paganlinux.eu/nazwa-repo.git Sending changes (push)
git add.
git commit -m "Change description"
git push origin main Branches
git branch nowa-funkcja # create branch
git checkout nowa-funkcja # switch
git push origin nowa-funkcja # push to server Adding a new repo
An admin can create a repo via the admin panel or over SSH:
ssh root@vps
mkdir /var/git/moje-repo.git
cd /var/git/moje-repo.git
git init --bare Git token
Instead of a password you can use a token – generate it in your profile. The token works just like a password with git clone and git push.
Issues
Every repo has an issue system – report bugs and suggestions via the web UI. Maintainers can edit files directly in the browser.
Mirroring from GitHub
git clone --mirror https://github.com/user/repo.git
cd repo.git
git remote add pagan https://git.paganlinux.eu/repo.git
git push --mirror pagan