Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
git_gitea [30/03/2025 - 07:52] – thommie_netzwissen.de | git_gitea [25/04/2025 - 09:09] (aktuell) – [Remote Repos] thommie_netzwissen.de | ||
---|---|---|---|
Zeile 30: | Zeile 30: | ||
- | ===== Remote Repos: Verknüpfen einer lokalen Instanz mit Remote Instanzen | + | ===== Remote Repos ===== |
- | " | + | " |
**Kontrolle der Remote Ziele " | **Kontrolle der Remote Ziele " | ||
- | |||
< | < | ||
git remote -v | git remote -v | ||
Zeile 49: | Zeile 48: | ||
* origin = persönliches git Repo auf Github. Die kann ein privater Fork eines öffentlichen Repos auf github sein. | * origin = persönliches git Repo auf Github. Die kann ein privater Fork eines öffentlichen Repos auf github sein. | ||
+ | * upstream = Master repo, eigene commits landen dort per Pull Request | ||
- | Anders bei öffentlichen | + | Aus [[https:// |
+ | |||
+ | ===== Fix upstream branch errors with autoSetupRemote ===== | ||
+ | |||
+ | If you constantly run into Git's fatal " | ||
+ | < | ||
+ | |||
+ | This is done by setting the push.autoSetupRemote option in any of [[https:// | ||
+ | |||
+ | ===== How to set push.autoSetupRemote ===== | ||
+ | |||
+ | To tell Git to automatically create new branches in remote repositories upon a push, simply issue the following command: | ||
+ | < | ||
+ | |||
+ | With that configuration setting in place, you'll never have to push with the | ||
+ | < | ||
+ | |||
+ | |||
+ | ===== öffentliche | ||
+ | |||
+ | Öffentliche Repos werden zunächst geforkt, also eine Kopie im eigenen Repo-Speicher als " | ||
* upstream = öffentliches Github Repo (z.B. [[https:// | * upstream = öffentliches Github Repo (z.B. [[https:// | ||
Zeile 135: | Zeile 155: | ||
Wo bin ich (aktueller Branch) | Wo bin ich (aktueller Branch) | ||
- | <file> | + | <code> |
git branch | git branch | ||
- | + | </code> | |
- | </file> | + | |
Alle Branches im lokalen und im remote Repo zeigen (remotes) | Alle Branches im lokalen und im remote Repo zeigen (remotes) | ||
Zeile 150: | Zeile 169: | ||
remotes/ | remotes/ | ||
remotes/ | remotes/ | ||
+ | </ | ||
+ | Nur die remotes zeigen | ||
+ | |||
+ | < | ||
+ | git branch -r | ||
</ | </ | ||
Zeile 157: | Zeile 181: | ||
< | < | ||
git checkout master | git checkout master | ||
- | |||
</ | </ | ||