Skip to content

Instantly share code, notes, and snippets.

@mbiemann
Last active February 15, 2024 09:57
Show Gist options
  • Save mbiemann/d0f3e05453a65221ef1774839d324b57 to your computer and use it in GitHub Desktop.
Save mbiemann/d0f3e05453a65221ef1774839d324b57 to your computer and use it in GitHub Desktop.
Git Copy File from one branch to another
git checkout <target_branch>
git diff <source_branch> --name-only | cat
git checkout <source> "file name"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment