Integration of Google Collaboratory with github

+1 vote
I have some repositories on github which i would want to import into Google Colab. How can i do this?
Mar 26, 2018 in Data Analytics by kurt_cobain
• 9,390 points

3 answers to this question.

0 votes

Just run the below command:

!git clone githubrepohtml
%cd githubrepo_folder_name
answered Mar 26, 2018 by Bharani
• 4,660 points
+1 vote

You can use SSH protocol to connect your private repo with colab

1) Generate SSH keys

2) upload it to colab

from google.colab import files
uploaded = files.upload()

3) Move the ssh kay pairs to /root and connect to git

  • remove previously ssh files
    ! rm -rf /root/.ssh/*
    ! mkdir /root/.ssh
  • uncompress your ssh files
    ! tar -xvzf ssh.tar.gz
  • copy it to root
    ! cp ssh/* /root/.ssh && rm -rf ssh && rm -rf ssh.tar.gz ! chmod 700 /root/.ssh
  • add your git server e.g gitlab as a ssh known host
    ! ssh-keyscan >> /root/.ssh/known_hosts
    ! chmod 644 /root/.ssh/known_hosts
  • set your git account
    ! git config --global "email"
    ! git config --global "username"
  • finally connect to your git server
    ! ssh
4) Authenticate your private repository
5) Use !{account}/{projectName}.git
note: to use push, you have to give write access for
the public ssh key that you authenticate git server with.
answered Aug 7, 2018 by Kalgi
• 52,360 points
0 votes
answered Mar 9, 2019 by TEJAS
• 150 points

Related Questions In Data Analytics

+1 vote
2 answers

Custom Function to replace missing values in a vector with the mean of values

Try this. lapply(a,function(x){ifelse(,mean(a,na.rm = TRUE ...READ MORE

answered Aug 14, 2019 in Data Analytics by anonymous
0 votes
1 answer

With the help of tidyverse: how to rename a column to a variable name

With the help of Dplyr: rename function ...READ MORE

answered Apr 3, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Apr 3, 2018 by DeepCoder786 824 views
+1 vote
1 answer

How to convert a list of vectors with various length into a Data.Frame?

We can easily use this command, "length< ...READ MORE

answered Apr 4, 2018 in Data Analytics by DeepCoder786
• 1,720 points
+1 vote
2 answers

How to count the number of elements with the values in a vector?

Use dplyr function group_by(). > n = > ...READ MORE

answered Aug 21, 2019 in Data Analytics by anonymous
• 33,030 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
2 answers

Integration of R with Java

there is a package called rjava that ...READ MORE

answered Dec 5, 2018 in Data Analytics by Kalgi
• 52,360 points
+2 votes
3 answers

Problem with installation of Wordcloud in anaconda

Using Anaconda Python 3.6 version For Windows ...READ MORE

answered Aug 7, 2018 in Data Analytics by Priyaj
• 58,090 points
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP