Git-Erklärung: Wie funktioniert die Git-Synchronisierung mit Befehlen wie «Git Remote», «Git Fetch», «Git Push» und «Git Pull»?

Git explanation: How does Git synchronization work with commands such as "Git Remote", "Git Fetch", "Git Push" and "Git Pull"?

SVN uses a single centralized repository as a communication interface for developers, with collaboration taking place via changesets. The changesets are exchanged between the developers' working copies and the central repository. This is the most important difference to the distributed collaboration model of Git, where each developer receives their own copy of the repository with their own local history and branch structure. This allows entire branches (rather than a series of consecutive commits or individual changesets) to be shared between repositories. The "Git Remote" command is part of a broad system for synchronizing changes. With "Git Remote" a connection to other repositories can be created, retrieved or deleted. Entries via "Git Remote" are used together with the "Git Fetch", "Git Push" and "Git Pull" commands. The "Git Fetch" command downloads commits, files and references from a remote repository to the local repository to see what everyone else is working on. By viewing progress in the central history with no impact on local development work. The retrieved content must be explicitly checked out with the "Git Checkout" command to safely review commits before integrating them into local repositories. The "Git Push" command is used to upload content from a local repository to a remote repository. You use the "Git Push" command to transfer commits from your local repository to a remote repository. The counterpart to this is the "Git Fetch" command, which imports commits into local branches. You can use "Git Push" to export commits to remote branches. Remote branches are configured with the "Git Remote" command. As there is a risk of overwriting changes when pushing with "Git Push", you should be careful. The "Git Pull" command is required to download content from a remote repository. This will immediately update the local repository so that the content matches. Merging upstream changes with your local repository is often required in Git-based collaboration workflows. The "Git Pull" command is actually a command combination of "Git Fetch" followed by "Git Merge". "Git Pull" first performs a "Git Fetch" that includes the local branch and points to the HEAD. As soon as the content has been downloaded, "Git Pull" starts a merge workflow. A new merge commit is created and HEAD is updated to point to the new commit. These and other Git commands and Git tools can be learned in a Git course.

Suitable training courses/seminars: