73. Checkout Single File from Another Branch
Beginner Mode
Start your terminal to use beginner mode.
Scenario
You are working on the main branch and need to update config.json with changes that currently exist only on the feature-settings branch, without switching your current context.
Task
Navigate to /home/interview/repo and retrieve the config.json file from the feature-settings branch into your current working directory.
Example
# Before (Old config on main)
$ cat config.json
{ "version": "1.0.0" }
# After (New config retrieved)
$ cat config.json
{ "version": "2.0.0" }
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 →
Twilio
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
Elastic
Netflix
CrowdStrike
Ubisoft
Anthropic
Capital One
Splunk
Intel
AMD
Databricks