Skip to content

Instantly share code, notes, and snippets.

@vsay01
Last active January 1, 2020 11:29
Show Gist options
  • Save vsay01/3650dd4e63df4f9f2043b2c17d81fa6d to your computer and use it in GitHub Desktop.
Save vsay01/3650dd4e63df4f9f2043b2c17d81fa6d to your computer and use it in GitHub Desktop.
!git clone "{GIT_PATH}" ./temp # clone github repository to temp folder
!mv ./temp/* "{PROJECT_PATH}" # move all files/folders in temp folder to folder defined in project path
!rm -rf ./temp # remove all the files/folders in temp folder
!rsync -aP --exclude=data/ "{PROJECT_PATH}"/* ./ # use remote sync to copy from google drive to local runtime google colab
# but exclude data folder
# https://www.computerhope.com/unix/rsync.htm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment