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

posted @ 2020-03-16 08:29  KevinHwang  阅读(153)  评论(0编辑  收藏  举报