git 使用技巧
来源:互联网 发布:Centos内核查看 编辑:程序博客网 时间:2024/06/06 10:50
$ git -commit -e -s -a //-s 会增加Signed-off-by行,-e会调用vim进行编辑commit message,-a表示all。
恢复删除了的文件:(撤消一次提交)
$ git -log //注意查看上次 git -rm后的 git -commit ID
$ git -revert adb2f08089edac8bf1912a618a74485ab42f2b86 //指定导致删除操作的commit ID
恢复到mailine:
$ git -reset --hard //这会使你的本地改动全部丢失
- Git使用技巧篇
- git使用技巧 (1)
- Git使用技巧篇
- git 使用小技巧
- git 使用技巧
- Git上传下载使用技巧
- git使用技巧
- git 使用技巧
- Git命令使用技巧
- git 使用技巧总结
- git 使用技巧
- git +repo使用技巧
- git使用之技巧
- git使用技巧
- Git使用技巧
- git使用技巧
- git stash 使用技巧
- git 使用技巧
- poj3415之长度不小于k的公共子串个数
- No result defined for action and result input
- 三极管电路一些总结
- java中Statement详细用法
- OA发展建议有奖调研内容
- git 使用技巧
- max-heapify的运行时间分析
- MySQL架构
- 客户端本地存储解决方案
- spring 的事务管理1
- iOS6漏洞中阿拉伯字符串导致微信QQ短信崩溃的解决方法
- java学习之路---IO-----File类
- hdu 3371 Connect the Cities
- JAVA泛型擦除