Complete the command to clone a large Git repository efficiently.
git clone --[1] https://example.com/large-repo.gitThe --depth=1 option clones only the latest commit, making cloning faster for large repos.
Complete the Git command to list all branches in a large repository without fetching all remote data.
git branch --[1]The --remote option lists remote branches without fetching all data, useful for large repos.
Fix the error in the Git command to fetch only a specific branch from a large repo.
git fetch origin [1]Branch names use dashes, not spaces or underscores. 'feature-branch' is correct syntax.
Fill both blanks to create a shallow clone of only the main branch in a large repo.
git clone --[1]=1 --[2] main https://example.com/large-repo.git
--depth=1 limits history, and --single-branch clones only the specified branch.
Fill all three blanks to create a dictionary comprehension that maps branch names to their latest commit hashes for branches with names longer than 5 characters.
branch_commits = [1]: [2] for [3] in branches if len([3]) > 5
This comprehension maps each branch name to its commit hash, filtering by branch name length.