Gitlab client

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Erste Anmeldung

Name festlegen
  • git config --global user.name "Thomas Will"
Mail Adresse setzen
  • git config --global user.email thomas.will@xinux.de
Default branch lokal setzen.
  • git config --global init.defaultBranch main

Command line instructions

Initialisierung
  • git init
Einstellen des Remote Repository
  • git remote add origin git@git.xxxx.de:thomas.will/pfsense-scripts.git
Wenn schon etwas im Projekt drin ist pullen wie die aktuelle Version.
  • git pull
irgendwas in die README.md schreiben
  • echo Scripts for PFSense > README.md
Alle Dateien zum commit vorbereiten.
  • git add .
Diesmal Kennzeichnung Initial, well es das erste mal ist.
  • git commit -m "Initial commit"
Wir pushen nun
  • git push -u origin main