Skip to content

Instantly share code, notes, and snippets.

@brunos3d
Created November 12, 2021 14:49
Show Gist options
  • Save brunos3d/46e5c50420d30422798e237f464ac3eb to your computer and use it in GitHub Desktop.
Save brunos3d/46e5c50420d30422798e237f464ac3eb to your computer and use it in GitHub Desktop.
Git commad that copies the foo.txt file from the experiment branch to the main branch.

Copies the foo.txt file from the experiment branch to the main branch.

git switch main
git restore --source experiment -- foo.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment