github笔记

 

1.新建repository

2.新建/进入文件夹

git init
git add [文件]
git commit -m "[描述]"
git remote add [origin(或者其他名称)] https://github.com/[github账号昵称]/[repository名称].git
git push -u [origin] master

3.其他命令

 git log #查看操作历史记录
 git checkout #切换分支

 

posted @ 2019-03-04 23:34  人生多风雨  阅读(186)  评论(0编辑  收藏  举报