in colaboratory i can excecute bash command with "!" simbol like
bash
!git clone repository-name
for cloning github repository.
It's work perfectly when repository is public, but doesn't work when repository is private, because it request user name / password without a input. How could i solve this issue?
thank you a lot!
Since 2021, Github has migrated from using username and password to using a Personal Access Token.
In order to clone your repository using a personal access token
https://<PERSONAL_ACCESS_TOKEN>@github.com/username/repo.gitYou can pass username and password from url itself:-
!git clone https://username:[email protected]/username/repository.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With