Git
19. Februar 2021 / Stephan Post
Eine Übersicht zu git
neues repo
Auf dem Server:
stephan@BytesNAS:~/git-repos$ git init --bare kellinghusen.gitssh 10.0.1.20
stephan@BytesNAS: cd ~/git-repos
stephan@BytesNAS:~/git-repos$ mkdir MapPainter.git
stephan@BytesNAS:~/git-repos$ cd MapPainter.git/
stephan@BytesNAS:~/git-repos/MapPainter.git$ git init --bareAuf dem Client:
git clone ssh://stephan@10.0.1.20/volume1/homes/stephan/git-repos/kellinghusen.git
git clone ssh://stephan@10.0.1.20/volume1/Trip\ Unlimited/tucan.gitgit remote add bytesnas stephan@10.0.1.20:/var/services/homes/stephan/git-repos/MapPainter
git push -u bytesnas masterlegt dann ein Verzeichnis mit dem Namen kellinghusen an in dem das repo liegt.
submodule auflisten
git submodule
remote branches auflisten
git branch --remote
git remotes auflisten
git remote -v
git remote entfernen
git remote remove origin
Links
DRAFT