Git ist ein Tool zur Versionierung wird aber oft auch zum [[configuration_management|Konfigurationsmanegement]] eingesetzt. Github ist eine Website um Repositories zu hosten. Gitlab ist Github OnPremise.
Siehe auch [[gitea]].
=====Git shell commands=====
Login Reset
git config --global --unset user.name
git config --global --unset user.email
git config --global --unset user.password
Existing repo
git clone -b
git add
git commit -m ""
git push origin
git checkout -b // create
Empty repo
cd /path/to/your/project
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/username/repository.git
git push -u origin main
=====Download Releases=====
https://api.github.com/repos///releases/latest
=====Direct links=====
https://raw.githubusercontent.com///
=====Deploy keys=====
ssh-keygen -t rsa
# Github.com server
Host github.com
RSAAuthentication yes
IdentityFile ~/.ssh/id_rsa
git clone git@github.com:username/repository.git
=====Gitlab=====
sudo apt install curl openssh-server ca-certificates
// add repo
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt install gitlab-ce
Die Konfigurationsdateien findet man unter ''/etc/gitlab/''
=====Links=====
* [[https://www.youtube.com/watch?v=Uszj_k0DGsg|Git for Professionals]]
* [[https://ourcodeworld.com/articles/read/654/how-to-create-and-configure-the-deployment-ssh-keys-for-a-gitlab-private-repository-in-your-ubuntu-server]]
* [[https://stackoverflow.com/questions/2938301/remove-specific-commit|Delete specific github commit]]