Git: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
Zeile 9: | Zeile 9: | ||
*git --bare init | *git --bare init | ||
=git client= | =git client= | ||
+ | ==copy id_rsa.pub to the git server== | ||
+ | *ssh-copy-id gituser@git-server: | ||
==create own project directory== | ==create own project directory== | ||
*mkdir my-project | *mkdir my-project | ||
*cd my-project/ | *cd my-project/ | ||
− | == | + | ==git init and show status== |
− | * | + | *git init |
− | + | *git status -s | |
+ | =links= | ||
*https://www.tutorialspoint.com/git/git_create_operation.htm | *https://www.tutorialspoint.com/git/git_create_operation.htm | ||
*https://www.thomas-krenn.com/de/wiki/Git_Server-Konfiguration | *https://www.thomas-krenn.com/de/wiki/Git_Server-Konfiguration |
Version vom 20. Dezember 2017, 15:15 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
copy id_rsa.pub to the git server
- ssh-copy-id gituser@git-server:
create own project directory
- mkdir my-project
- cd my-project/
git init and show status
- git init
- git status -s