git简单实用

git简单命令

git init 初始化
git add . 全部管理起来
git commit -m ‘创建第一个版本’

git config --global user.email "自己邮箱"
git config --global user.name "自己名字"

git status 查看当前文件夹状态
git log 查看日志
git reset --hard 版本号 回滚到上一个版本
git reflog 查看所有版本(包括回滚)

猜你喜欢

转载自www.cnblogs.com/CrazyDemo/p/10613574.html
今日推荐