- Git status 查看本地仓库文件状态
- Git log 查看提交日志
- Git reflog 查看精简版提交日志
- Git add * 添加当前文件夹中的未跟踪文件到本地仓库
- Git commit -m "本次提交信息" 提交文件到本地库
- Git remote -v 查看远程仓库连接
- Git remote rm 远程仓库名 删除远程仓库
- Git remote add 远程仓库名 远程仓库地址(http/ssh) 连接远程目标仓库
- Git push -u origin master 推送本地仓库到远程仓库,本地:origin,远程:master
- Git pull origin master 把远程更新同步到本地代码