Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| anleitung:programmieren:git_grundlagen [18.03.2019 10:27] – [Submodule] J. Huber | anleitung:programmieren:git_grundlagen [10.07.2025 15:36] (aktuell) – [Allgemeines] J. Huber | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | <hidden Artikel Info> | ||
| - | ---- dataentry ArtikelInfo ---- | ||
| - | Name : Git Grundlagen # | ||
| - | Beschreibung | ||
| - | ProjektNr | ||
| - | Bereich_tagmain | ||
| - | Kategorien_taganleitungs | ||
| - | Webkategorie_taganleitung_web : # | ||
| - | Technologie_prjtechs | ||
| - | Sprache_tagprogramming | ||
| - | Version | ||
| - | ---- | ||
| - | |||
| - | |||
| - | </ | ||
| - | |||
| ====== Git Grundlagen ====== | ====== Git Grundlagen ====== | ||
| Zeile 28: | Zeile 12: | ||
| | git log\\ gitk | Commit Historie anzeigen | | git log\\ gitk | Commit Historie anzeigen | ||
| | git tag [-a] <tag> [-m '< | | git tag [-a] <tag> [-m '< | ||
| + | | git branch < | ||
| Zeile 36: | Zeile 21: | ||
| <code bash> | <code bash> | ||
| $ git remote set-url origin https:// | $ git remote set-url origin https:// | ||
| - | |||
| </ | </ | ||
| <code bash> | <code bash> | ||
| $ git remote set-url origin https:// | $ git remote set-url origin https:// | ||
| + | </ | ||
| + | |||
| + | === Repository auschecken === | ||
| + | <code bash> | ||
| + | $ git clone / | ||
| + | $ git clone benutzername@host:/ | ||
| + | $ git -c http.sslVerify=false clone < | ||
| </ | </ | ||
| + | === Repository update vom Parent === | ||
| + | <code bash> | ||
| + | git fetch | ||
| + | git rebase origin/ | ||
| + | </ | ||
| Zeile 54: | Zeile 50: | ||
| $ git filter-branch --prune-empty --subdirectory-filter clone_directory HEAD | $ git filter-branch --prune-empty --subdirectory-filter clone_directory HEAD | ||
| </ | </ | ||
| + | |||
| Zeile 92: | Zeile 89: | ||
| $ git pull # update content | $ git pull # update content | ||
| </ | </ | ||
| + | |||
| + | === Disable SSL verification for a specific repository === | ||
| + | |||
| + | <code bash> | ||
| + | $ git config --global http.sslVerify false | ||
| + | </ | ||
| + | === Nur Unterverzeichnis === | ||
| + | |||
| + | <code bash> | ||
| + | $ git clone --no-checkout --depth 1 --sparse --filter=blob: | ||
| + | $ cd $REPO | ||
| + | $ git sparse-checkout init --cone | ||
| + | $ git sparse-checkout add relevant/ | ||
| + | $ git checkout master | ||
| + | </ | ||
| + | |||
| + | ==== Links ==== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| {{tag> | {{tag> | ||
| + | |||
| ---- struct data ---- | ---- struct data ---- | ||
| + | artikelinfo.name | ||
| + | artikelinfo.beschreibung : Git Grundlagen | ||
| + | artikelinfo.status | ||
| + | artikelinfo.statuslink : Fertig|Fertig | ||
| + | artikelinfo.version | ||
| + | artikelinfo.cats | ||
| + | artikelinfo.catlinks : Anleitung|Anleitung, | ||
| + | artikelinfo.prg | ||
| ---- | ---- | ||