Last active
January 31, 2021 15:53
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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