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

git笔记

时间:2018-03-08 20:48:23      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:pos   回退   仓库   stat   color   bsp   查看   set   style   

自己一段时间不用git,偶尔忘记,现在重新温习记录后便于查找

 1 #初始化仓库
 2 cd /root/project/
 3 git init
 4 
 5 #添加文件
 6 git add code1.lua
 7 
 8 #提交版本
 9 git commit -m "版本修改说明"
10 
11 #修改未提交查看状态
12 git status
13 
14 #查看文件不同
15 git diff
16 
17 #查看所有版本记录
18 git log
19 
20 #回退版本
21 git reset --hard commit编号

 

git笔记

标签:pos   回退   仓库   stat   color   bsp   查看   set   style   

原文地址:https://www.cnblogs.com/drkang/p/8530631.html

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