windows git
下载链接: Msysgit https://git-scm.com/download/win
1 进入git bash进行第一次配置
git config --global user.name "your name"
git config --global user.email "***.com"
git config --list 查看配置列表
2 Git 仓库
git init 初始化本地仓库
git add file 添加文件到暂存区 ---》(git reset HEAD file 恢复文件从暂存区到未暂存区,即清楚git add动作) --》(git checkout -- file 删除修改,discard changes in working directory)
git commit -m "log msg" file 提交文件到本地仓库
git status 查看文件状态
git reset --hard 版本哈希号 (恢复到某个版本)
git rm file (删除文件)
远程仓库