Git: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
 
(25 dazwischenliegende Versionen von 5 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
=git server=
=Übersicht=
==create user and group==
[[Datei:Git.png|500px]]
*groupadd dev
 
*useradd -G dev -d /home/gituser -m -s /bin/bash gituser
 
*passwd gituser
*[[gitlab client]]
==mkdir and init empty git==
*[[git remote]]
*mkdir project.git
*[[git server]]
*cd project.git/
*[[git client]]
*git --bare init
*[[etckeeper]]
=git client=
*[[gitlab]]
==copy id_rsa.pub to the git server==
*[[gitlab client]]
*ssh-copy-id gituser@git-server:
*[[gitweb]]
==create own project directory==
*[[git handling]]
*mkdir my-project
*[[git iwatch]]
*cd my-project/
*[[git Readme]]
==git init and show status==
*[[github]]
*git init
*git status -s
==create a new file==
*echo -e '#!/bin/bash\necho hallo welt' > silly-prog.sh
*chmod +x silly-prog.sh
==show status again==
*git status -s
?? silly-prog.sh
==add the whole folder==
*git add .
*git status -s
A  silly-prog.sh


=links=
=links=

Aktuelle Version vom 24. April 2023, 11:31 Uhr