Complete the command to clone a remote Git repository to your local machine.
git [1] https://github.com/user/repo.gitThe git clone command copies a remote repository to your local machine, creating a full copy including history. In distributed VCS like Git, every clone is a full backup; unlike centralized VCS like SVN.
Complete the command to send your local commits to the remote repository.
git [1] origin mainThe git push command uploads your local commits to the remote repository, sharing your changes. In distributed systems, anyone can push to shared repos.
Complete the command to update your local repository with changes from remote.
git [1] origin mainThe git pull command fetches and merges changes from the remote repository into your local branch. Equivalent to fetch + merge in Git's distributed model.
Fill both blanks to create a new branch and switch to it in Git.
git [1] -b [2]
The command git checkout -b feature creates a new branch named 'feature' and switches to it. Branching is cheap and local in distributed Git, unlike centralized systems.
Fill all three blanks to push commits and set the upstream tracking branch, enabling easy future syncs in distributed Git.
git [1] --set-upstream [2] [3]
The git push --set-upstream origin main (or git push -u origin main) pushes the branch and configures it to track the remote branch. This is essential in distributed version control for streamlined workflows without a central server dependency.