colab文件夹上传到github
生活随笔
收集整理的這篇文章主要介紹了
colab文件夹上传到github
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
主要難處是notebook不是交互式的.
所以沒法在git commit 以及git push 運行后再攜帶參數(shù).
必須在運行的時候就攜帶用戶名和密碼參數(shù),這樣才能順利push.
?
完整流程如下:
!git config --global user.name appleyuchi !git config --global user.email appleyuchi@163.com!git clone https://github.com/appleyuchi/lightgbm_colab.git !cp -r /content/LightGBM/* /content/lightgbm_colab/!cd /content/lightgbm_colab/;git add *;git commit --allow-empty-message -m ''!cd /content/lightgbm_colab/;git remote set-url origin git@github.com:appleyuchi/lightgbm_colab.git!cd /content/lightgbm_colab;git push https://appleyuchi:密碼@github.com/appleyuchi/lightgbm_colab.git --all?
總結(jié)
以上是生活随笔為你收集整理的colab文件夹上传到github的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: colab加载google drive并
- 下一篇: colab中安装lightgbm的GPU