
git
cch___
这个作者很懒,什么都没留下…
展开
-
生成和打上patch的方法
收藏在团队开发的过程中,经常需要生成patch,或者打上别人提供的patch,那么一般情况是如何操作的呢。首先生成patch需要有两个工程,一个修改前的A工程,一个修改后的B工程。使用linux命令diff就可以生成patch了。格式如下:diff -Naur path/to/A_Project path/to/B_Project >原创 2016-11-30 10:56:08 · 11140 阅读 · 0 评论 -
git rebase -i HEAD~2 将提交合并到上一次未审核的提交
git add ./git commit -m"oooooooo"git rebase -i HEAD~2 (索引从1开始,同理若更改前n次的commit,此处改为n即可)显示如下:pick 238fedf balabala。pick 941fb81 oooooooo# Rebase 3c79056..941fb81 onto 3c79056## Command原创 2016-11-25 10:36:20 · 6988 阅读 · 0 评论 -
git stash
保存 git stashdo sth恢复git stash pop冲突本地修改查看stash listgit stash list清除stash listgit stash clear恢复 git reset正常了。原创 2017-05-03 11:26:33 · 429 阅读 · 0 评论