Git: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 12: Zeile 12:
 
*mkdir my-project
 
*mkdir my-project
 
*cd my-project/
 
*cd my-project/
==copy id_rsa.pub to the git server=
+
==copy id_rsa.pub to the git server==
 
*ssh-copy-id gituser@git-server:
 
*ssh-copy-id gituser@git-server:
  

Version vom 20. Dezember 2017, 15:13 Uhr

git server

create user and group

  • groupadd dev
  • useradd -G dev -d /home/gituser -m -s /bin/bash gituser
  • passwd gituser

mkdir and init empty git

  • mkdir project.git
  • cd project.git/
  • git --bare init

git client

create own project directory

  • mkdir my-project
  • cd my-project/

copy id_rsa.pub to the git server

  • ssh-copy-id gituser@git-server: