Skip to content

Instantly share code, notes, and snippets.

@Giwan
Created April 7, 2020 10:03
Show Gist options
  • Select an option

  • Save Giwan/70ad57f7b8a87fcbeae4c5aececf539a to your computer and use it in GitHub Desktop.

Select an option

Save Giwan/70ad57f7b8a87fcbeae4c5aececf539a to your computer and use it in GitHub Desktop.
Git stuff

copy file from other branch

  1. git checkout targetBranch
  2. git checkout sourceBranch filename.txt

File "filename.txt" is now available in the source branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment