git使用技巧
来源:互联网 发布:ubuntu apt get jdk8 编辑:程序博客网 时间:2024/06/06 00:48
小步快跑,快速迭代
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的好搭档
0 0
- Git使用技巧篇
- git使用技巧 (1)
- Git使用技巧篇
- git 使用小技巧
- git 使用技巧
- Git上传下载使用技巧
- git使用技巧
- git 使用技巧
- Git命令使用技巧
- git 使用技巧总结
- git 使用技巧
- git +repo使用技巧
- git使用之技巧
- git使用技巧
- Git使用技巧
- git使用技巧
- git stash 使用技巧
- git 使用技巧
- POCO CMake编译及使用
- java 遍历map
- tabBar点击事件以及返回跟vc的监控方法
- FragmentTabHost实现底部导航菜单
- 别天神
- git使用技巧
- Javascript正则表达式
- Python进阶学习
- hdu 2191 C - 悼念512汶川大地震遇难同胞――珍惜现在,感恩生活
- 程序员初入职场的迷茫和疑惑
- 对UIView动画和Core Animation的关系的一点理解
- 蓝桥杯 区间k大数查询(排序+查找)
- 传播智客J2EE学习线路图
- linux下安装PHP扩展pdo_mysql