首页 > 其他 > 详细

Learn GIT

时间:2016-08-26 06:35:33      阅读:119      评论:0      收藏:0      [点我收藏+]

1.创建版本库:

git init

2.添加到仓库

git add 1.txt

3.提交到仓库

git commit -m "说明文字"

4.查看仓库状态:

git status

5.查看修改的内容:

git diff

6.查看提交历史记录:

git log

7.版本回溯:

git reset --hard dsdff12

8.查看命令历史:

git reflog

9.显示添加颜色:

git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto

详细参考:http://www.codesec.net/view/181168.html

设置SecuteCRT:Options==>Session Options==>Terminal==>Emulation 勾选上“ANSI Color"和”Use color scheme"。

技术分享技术分享

 

Learn GIT

原文:http://www.cnblogs.com/a963383404/p/5807953.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!