【时间】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.