Skip to content

Instantly share code, notes, and snippets.

@seeliang
Created July 9, 2020 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seeliang/e3c289b4eb016f37646c5946e0ead190 to your computer and use it in GitHub Desktop.
Save seeliang/e3c289b4eb016f37646c5946e0ead190 to your computer and use it in GitHub Desktop.
checkout files from different repo

add remote

git add remote-name remote-git-url

fetch

git fetch remote-name

checkout files

git checkout remote-name/branch-name -- path-to-folder-or-file

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