72. Shallow Clone Limited to Latest Commit
Beginner Mode
Start your terminal to use beginner mode.
Scenario
A deployment pipeline is experiencing slow build times because it performs full history clones.
Task
Navigate to /home/interview/workspace and create a shallow clone of the repository (file:///tmp/source-repo/repo.git) named shallow-repo, restricted to the latest commit only.
Example
# Verify the clone is shallow (Has only 1 commit)
$ cd shallow-repo
$ git log --oneline
a1b2c3d (HEAD -> main, origin/main, origin/HEAD) Update deployment config
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
Linux Terminal Environment
Write and execute your solution in the terminal below.
Essential
Linux 0/29
AWS 0/10
Kubernetes 0/15
CI/CD 0/5
Networking 0/9
Need more practice in this area? Explore more questions →
Elastic
Accenture
Coinbase
Adobe
EPAM
Twitch
Amazon
Kayak
Autodesk
Lyft
Revolut
RedHat
Bloomberg
Datadog
Palantir
TCS
HashiCorp
Google
DeutscheBank
GitHub
Apple
Cloudflare
Stripe
Microsoft
NVIDIA
GoDaddy
X
SAP
Spotify
Airbnb
Meta
Reddit
Yelp
Okta
Dropbox
Slack
ActivisionBlizzard
Zscaler
Uber
IBM
DeliveryHero
Robinhood
GitLab
Shopify
Samsung
Twilio
Netflix
CrowdStrike
Ubisoft
Anthropic
Capital One
Splunk
Intel
AMD
Databricks