git command

新建并上传:

1 手工在github新建项目titanic

2 本地初始化

git init titanic

3 文件复制到本地项目目录

cp Titanic.ipynb titanic

4 备注(备注后才能上传)

$ git commit -m "initial commit"

5 上传

git push -u origin master

更新并上传

git add *

git commit -m "some thing"

git push -u origin master

原文地址:https://www.cnblogs.com/instant7/p/12501709.html