github 관리하기
Colab + Github 연동하기
yuuuun
2024. 3. 5. 23:27
반응형
!git add .
!git commit -m '[commit message]'
!git push
github settings > Developer settings > Personal access tokens > Tokens(classic) > Generate new token > Generate new token(classic)
> input password > set expiration > check [repo], [read.org], [gist]
완성!
cd /content/drive/MyDrive/[dir_to_path]
!git clone https://[username]:[access token]@github.com/[username]/[repository name].git
!cd [github_project_name]
!git config --global user.email [email]
!git config --global user.name [name]
using colab
from google.colab import drive
drive.mount('/content/drive')
!cd /content/drive/MyDrive/[dir_to_path]
update to github
반응형