git使用技巧
2015-12-27 23:33
316 查看
小步快跑,快速迭代
[user]
name = fqc
email = 337940626@qq.com
[core]
editor = vim #ubuntu上默认的nano
[alias]
ci = commit -a -v
st = status -s
br = branch
throw = reset –hard HEAD
throwh = reset –hard HEAD^
[color]
ui = true
[push]
default = current
git branch [version]
git diff
已修改未提交
git throw 【reset –hard HEAD】
已修改并已经提交
git throwh
将多个开发中的小版本合并压缩为一个大版本
git rebase -i HEAD~~
~表示 当前版本的上一版本
进入vim后保留第一个pick
其他的版本 cw(删除) s
命令模式ZZ(shif+zz)保存
gitconfig配置
.gitconfig[user]
name = fqc
email = 337940626@qq.com
[core]
editor = vim #ubuntu上默认的nano
[alias]
ci = commit -a -v
st = status -s
br = branch
throw = reset –hard HEAD
throwh = reset –hard HEAD^
[color]
ui = true
[push]
default = current
备注
切换分支git branch [version]
git diff
已修改未提交
git throw 【reset –hard HEAD】
已修改并已经提交
git throwh
将多个开发中的小版本合并压缩为一个大版本
git rebase -i HEAD~~
~表示 当前版本的上一版本
进入vim后保留第一个pick
其他的版本 cw(删除) s
命令模式ZZ(shif+zz)保存
tig
请参见之前博文tig git的好搭档相关文章推荐
- RPC failed; result=22, HTTP code = 411
- VIM编译器显示TAB和TAB转换为空格
- git更新已經刪除的文件
- 菜鸟说给菜鸟听之VIM--入门篇(1)
- 提取Git每次提交后Commit的文件
- GIT迁移服务器
- maven使用经验集
- cygwin下vim方向键不好用的解决方案
- 分布式版本管理git入门指南使用资料汇总及文章推荐
- 安装使用Ubuntu之vim必须知道的细节
- linux make使用技巧
- git终极指南:在实际开发中的应用
- DB2编程序技巧(1)
- DB2编程序技巧 (四)
- DB2编程序技巧 (六)
- DB2编程序技巧 (三)
- DB2编程序技巧 (九)
- DB2编程序技巧 (七)
- PHOTOSHOP技巧167条
- DB2编程序小小技巧