767 B
767 B
GIT Beschreibung
Datei hinzu git add git commit git push
Status git status
Repo klonen git clone git@panel.agserver.de:scripts.git [Verzeichnis]
Repo aktualisieren git pull
Verzeichnis aus Repo mkdir VERZ cd VERZ git init git remote add NAME git@panel.agserver.de:scripts.git git fetch git checkout NAME/master -- [VERZEICHNIS_aus_Repo]
Beispiel
mkdir /git_scripts cd /git_scripts git init git remote add gs git@panel.agserver.de:scripts.git git fetch gs HHH=$(echo $HOSTNAME | tr '[A-Z]' '[a-z]') git checkout gs/master -- 0001_srv-scripts/$HHH/
Verzeichnis aktualisieren
git fetch gs git checkout NAME/master -- [VERZEICHNIS_aus_Repo]
#Beispiel git fetch gs HHH=$(echo $HOSTNAME | tr '[A-Z]' '[a-z]') git checkout gs/master -- 0001_srv-scripts/$HHH/