git:start
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
git:start [2015-04-29 08:54] – [Links] Link zu "GitHub Training: Git Cheat Sheet (PDF)" eingefügt a.kamola | git:start [2024-02-13 09:45] (aktuell) – "Commit" ergänzt a.kamola | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Git ====== | ====== Git ====== | ||
- | //Git// ist ein Tool zur [[lexikon: | + | //Git// ist ein Tool zur [[lexikon: |
- | ===== Merging | + | ===== Dateien |
- | ==== Ein git merge rückgängig machen, der bereits zum Server gepusht wurde ==== | + | ==== Datei verschieben/ |
+ | |||
+ | Eine Datei sollte mit dem Befehl '' | ||
<code bash> | <code bash> | ||
- | git revert -m 1 commit_hash | + | git mv foo_old.txt bar_new.txt |
</ | </ | ||
- | Quelle: [[https:// | + | ==== Dateien/Verzeichnisse ignorieren ==== |
- | ===== Dateien/Verzeichnisse | + | Mit der Datei '' |
- | Mit der Datei '' | + | ===== Commits ===== |
- | Siehe [[https:// | + | ==== Commit mit Hash finden ==== |
- | ==== Unterverzeichnis eines ignorierten Verzeichnisses erlauben ==== | + | <code bash> |
+ | git show < | ||
+ | </ | ||
- | Um ein Unterverzeichnis | + | ==== Branch |
- | < | + | Commit auf lokalen Branches: |
- | wordpress/ | + | |
+ | < | ||
+ | git branch | ||
</ | </ | ||
- | Nun müssen also alle Verzeichnisse bis '' | + | Commit auf remote Brances: |
- | <code - .gitignore> | + | < |
- | wordpress/* # Alles in ' | + | git branch |
- | !wordpress/ | + | </code> |
- | wordpress/ | + | ===== Branching & Merging ===== |
- | !wordpress/ | + | |
- | wordpress/ | + | ==== Branch löschen ==== |
- | !wordpress/ | + | |
- | !wordpress/ | + | === Lokalen Branch löschen === |
+ | |||
+ | <code bash> | ||
+ | git branch | ||
</ | </ | ||
- | ===== Links ===== | + | === Remote-Branch löschen |
- | * [[http://git-scm.com/|Git]] | + | <code bash> |
- | * [[http://www.git-tower.com/blog/ | + | git push origin |
- | * [[https://training.github.com/kit/downloads/ | + | </code> |
- | * [[https:// | + | |
+ | ==== Merge rückgängig machen ==== | ||
+ | |||
+ | Ein '' | ||
+ | |||
+ | <code bash> | ||
+ | git revert | ||
+ | </code> | ||
+ | |||
+ | Quelle: [[https://coderwall.com/p/o0krbw|coderwall: Matthew Harmon: Undo A git merge That Has Been Pushed To The Server]], 2020 | ||
+ | |||
+ | ===== Links ===== | ||
- | ==== Tutorials ==== | + | * [[https:// |
- | * [[https:// | + | ==== Cheatsheets ==== |
- | === Kostenpflichtige Tutorials === | + | * [[https:// |
+ | * [[https:// | ||
+ | * [[https:// | ||
- | * [[https:// |
git/start.1430290480.txt.gz · Zuletzt geändert: 2015-04-29 08:54 von a.kamola