【時間】2019.12.13
【題目】將本地代碼提交到Github
具體參考:Git 遠程倉庫(Github)
在Github上創建倉庫後,使用以下命令:
一、...or create a new repository on the command line
在本地創建新的代碼倉庫,並提交到Github倉庫。
echo "# PyramidNet-Keras" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/1490581824/PyramidNet-Keras.git
git push -u origin master
二、…or push an existing repository from the command line
將已有的倉庫推送(push)到Github上。
git remote add origin https://github.com/1490581824/PyramidNet-Keras.git
git push -u origin master
三、…or import code from another repository
從其他Github倉庫導入。
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.