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 #切换分支