Which statement best describes the main difference between distributed and centralized version control systems?
Think about where the full project history is stored in each system.
Distributed version control systems like Git store the entire project history on every user's machine, enabling offline work and local commits. Centralized systems keep the history only on a central server, requiring network access for most operations.
What is the result of running git clone https://github.com/example/repo.git in a distributed version control system?
Consider what cloning means in Git.
In Git, cloning downloads the entire repository including all commits and history, enabling full offline work.
Which workflow correctly describes committing changes in a distributed version control system like Git compared to a centralized system?
Think about where commits are stored initially in each system.
Distributed systems allow local commits that are later pushed to a remote repository. Centralized systems require commits to be made directly on the central server.
When two developers edit the same file simultaneously, how does conflict resolution differ between distributed and centralized version control systems?
Consider how each system manages simultaneous edits and merging.
Distributed systems like Git require manual merging when conflicts occur after pulling changes. Centralized systems sometimes use file locking to avoid conflicts by preventing simultaneous edits.
A remote team has unreliable internet connections. Which version control system type is best suited for their workflow and why?
Think about how offline work is supported.
Distributed version control systems like Git allow developers to commit changes locally without internet access, making them ideal for teams with unreliable connections. Centralized systems require constant server access for commits.