Need something from another branch, but you only need changes in 1 file?
Kalle Tolonen · 10.4.2025 · 1 min read
git
A couple of examples:
# replaces whole file in your working branch, but leaves your other work untouched git checkout source-branch -- path/to/file # We might need all the styling from another branch git checkout source-branch -- *.scss *.css
All articles
No published comments yet.
Your comment is held for review before it appears publicly.
Name:
Email: Your email is never published or shared.
Message: Up to 2,000 characters.
Captcha:
Verification expired. Tick the captcha again, then submit immediately.
Captcha verification could not load (it may be blocked by a browser extension). Disable content blockers or email kalle.tolonen@gmail.com.