-
Notifications
You must be signed in to change notification settings - Fork 0
Git Vorgehen
Moritz Profitlich edited this page Aug 23, 2023
·
7 revisions
- Die aktuelle Version ist der main branch
- TODO: Vorgehen mit Releases entwickeln (vor allem wenn das Projekt produktiv ist)
- branch aus issue generieren in Github
- Schliesst der branch weitere issues, diese jweiles so mit ihrer Nummer angeben:
closes #0 - In VS Code alte branches löschen:
git fetch --prune
- Konflikt: dateModified config/project/config.yaml auf das neuere Datum (höhere Zahl)
- Konflikt: fields, entries etc. absprechen, was bleibt und gelöscht wird - Merge
-
checkout dev,git pull dev -
checkout dev-name,git pull origin dev(origin dev, weil sonst dev-name gepullt wird)
Um einem issue im Nachhinein zuzuordnen, welcher commit es löst und schliesst, fixed by ### mit der commit Nummer in einen Kommentar schreiben.
https://stackoverflow.com/a/26137730
- Ausstehende commits ausführen
- Mit
git rm -r --cached .alle geänderten Dateien von der staging area entfernen git add .git commit -m "Anpassung an neue .gitignore"git push
Um zu einem alten Stand auf Github zurückzugehen (wenn also schon gepusht wurde):
git revert --no-commit 0766c053..HEAD
git commit