---
title: "Discussion on \"Copy File Between Git Branches\" | Hashnode"
description: "Discussion on \"Copy File Between Git Branches\". TIL that we can copy single file from another branch to current branch:\ngit checkout <branch-containing-the-file> </path/to/file>\n\nIn below screenshot we are copying a file from fiber-server-options to main branch:"
url: "https://hashnode.com/posts/copy-file-between-git-branches/6706ce15b2f3326728fab525"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Copy File Between Git Branches](https://arunvelsriram.dev/copy-file-between-git-branches?utm_source=hashnode&utm_medium=feed)

TIL that we can copy single file from another branch to current branch: git checkout <branch-containing-the-file> </path/to/file> In below screenshot we are copying a file from fiber-server-options to main branch:

Apr 23, 2024 · 1 min read · arunvelsriram.dev  
Read the article

-   [#til](https://hashnode.com/tag/til)
-   [#todayilearned](https://hashnode.com/tag/todayilearned)
-   [#git](https://hashnode.com/tag/git)
-   [#command-line](https://hashnode.com/tag/command-line)

## Written by

[Arunvel Sriram](https://hashnode.com/@arunvelsriram)

@arunvelsriram · Chennai, Tamil Nadu, India

  
[View profile](https://hashnode.com/@arunvelsriram)

Engineering @ Equal Experts | Ex-Thoughtworks | DevOps | Polyglot | Backend | Open Source

Engineering @ Equal Experts | Ex-Thoughtworks | DevOps | Polyglot | Backend | Open Source

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
