设置基础信息
git config --global user.email "you@example.com"
git config --global user.name "Your Name"

初始化仓库
git init

把当前目录所有文件添加到本地库
git add .

git commit -m "这里是注释信息"

提交到远程仓库
git push origin master

更新
git pull

远程下载
git clone 仓库地址

参考手册