Skip to content

Instantly share code, notes, and snippets.

@thepushkarp
Created October 13, 2020 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save thepushkarp/5b871bbe9085737b2d641da8cd819ffc to your computer and use it in GitHub Desktop.
Save thepushkarp/5b871bbe9085737b2d641da8cd819ffc to your computer and use it in GitHub Desktop.
Commands to clone your repository in Google Colab
uname = "<your username>"
!git config --global user.email '<your email>'
!git config --global user.name '<your name>'
from getpass import getpass
password = getpass('Password:')
!git clone https://$uname:$password@github.com/<username>/<repo name>.git
!cd <repo name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment