Skip to content

Instantly share code, notes, and snippets.

@csrajath
Last active January 31, 2021 15:53
Show Gist options
  • Save csrajath/1486aef350c4f267755e5b1c20861fe6 to your computer and use it in GitHub Desktop.
Save csrajath/1486aef350c4f267755e5b1c20861fe6 to your computer and use it in GitHub Desktop.
This gist depicts the programmatic steps for integrating Gdrive with Collaboratory and authenticating
from google.colab import drive
drive.mount('/content/gdrive')
%cd /content/gdrive/MyDrive/folder_name
/content/gdrive/MyDrive/folder_name
!git init
!git remote add origin https://githubUserName:[email protected]/username/repo_name.git
!git config --global user.email 'email_id'
!git config --global user.name 'user_name'
!git add .
!git commit -m 'First commit'
!git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment