GIT使用

下载地址:  https://git-scm.com/GI

在命令行模式输入以下命令:

--git  config --global user.name "用户名"

--git config --global user.email "邮箱"

查看是否设置  --git config --list

初始化: -- git init

提交到

git add '文件名'

git commit -m 'msg文件备注'     

查看状态:  git status

回退到历史的版本:  git reset --HEAD

查看历史版本  git log

posted @ 2019-06-08 15:18  开发者社区  阅读(138)  评论(0)    收藏  举报