updated:  2023 02. March
published:  2021 18. January

Git Remote

Quellcode auf einem zentralen Git-Server.

Git Server

Git-Server sind z.B.

GitLab
Bitbucket
Gitee
Github ↗ Heise Artikel: GitHub und ObenSource
SourceForge ↗ Heise Artikel: SourceForge Streit

Github

Github wird von Microsoft betrieben. Um ein Repository anzulegen und auf Github zu laden mache folgendes.

create a new repository on the command line

 # Gehe in dein Quellcodeverzeichnis
 echo "# Name" >> README.md
 git init
 git add README.md
 git commit -m "first commit"
 git branch -M Branchname
 git remote add origin https://github.com/kargus/name.git
 git push -u origin Branchname


or push an existing repository from the command line

 git remote add origin https://github.com/kargus/name.git
 git branch -M main
 git push -u origin main


Download mit Proxy

Um eine Quellcode mit Hilfe von Git herunter zu laden verwende:


 git clone http://www.xxxxxxxx
   

Gelegentlich kann das jedoch durch eine Firewall oder sonstige Unstände gesperrt sein. Mit git config kann ein Proxy eingestellt werden.


 # Globale Variable in ~/.gitconfig einstellen
 git config --global http.proxy   <proxy.url:port>
 git config --global https.proxy  <proxy.url:port>
   

Quellcode und Prüfwert (sha256, etc.)

Auf Github werden mehrheitlich auch Prüfwerte, Prüfsumme oder auch Hashwerte (sha256, etc.) zu Quellcode oder Binaris angeboten. Die Bildfolge zeigt am Beispiel des Passwortmanager KeeWeb wie man die Prüfsummen im Quellcode auf Github findet.

Stichworte (tags)