码迷,mamicode.com
首页 > 其他好文 > 详细

git简单实用

时间:2019-03-28 11:08:49      阅读:155      评论:0      收藏:0      [点我收藏+]

标签:png   --   实用   height   oba   eset   nbsp   管理   log   

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 查看所有版本(包括回滚)

技术图片

 

git简单实用

标签:png   --   实用   height   oba   eset   nbsp   管理   log   

原文地址:https://www.cnblogs.com/CrazyDemo/p/10613574.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!