摘要: $ cat test 1 start 2 end 3 $ sed -n '1,/start/p;/end/,$p' test 1 start end 3 $ sed '/start/,/end/d' test 1 3 阅读全文
posted @ 2019-01-22 14:29 imklutz 阅读(1423) 评论(0) 推荐(0) 编辑
摘要: 回退commit git log git reset --hard <commit_id> git push origin HEAD --force 解决合并冲突 git checkout -b conflict_fix # do some commit conflictly Auto-mergin 阅读全文
posted @ 2019-01-22 12:40 imklutz 阅读(267) 评论(0) 推荐(0) 编辑