kaggle notebook中免密码进行push
下面的都是都是kaggle notebook中運行的。
運行下面的代碼:
!rm -r /kaggle/working/RSNA_MODEL
!git clone https://github.com/appleyuchi/RSNA_MODEL
!git config --global user.email appleyuchi@163.com
!git config --global user.name appleyuchi
!git config --global credential.helper store
!git config --global push.default simple ??
print("------------------------")
!cd RSNA_MODEL;touch passwords;git add *;git commit --allow-empty-message -m '';git push https://appleyuchi:自己的密碼@github.com/appleyuchi/RSNA_MODEL.git --all
# !cd RSNA_MODEL;git push -f origin master
上面的代碼運行之后,下面進行測試:
!cd RSNA_MODEL;touch passwords;git add *;git commit --allow-empty-message -m '';git push
此時就可以發現不再需要密碼就可以直接git push
總結
以上是生活随笔為你收集整理的kaggle notebook中免密码进行push的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ubuntu18.10安装linuxqq
- 下一篇: git lfs出现This reposi