??? ?? ???? ?? ???? ?????? ??? ?? ??? ?????? ??? ??? ???? ? ?? ? ???? ?? ? ?? ??? ?????
??? ? ?? git log -p |grep "刪除掉內(nèi)容"
? ?????. ? ?? ??? ?????
?? ??? ?????? ?? ??? git log -p "文件名" |grep "刪除掉內(nèi)容"
? ??? ? ????.
??? ?? ??? ??????? ?? ? ? ????. . ??? ??? ?????????.
??:
??? ?? ??? ???? ?? ID? ?? ? ????git log -G"刪除掉內(nèi)容" -p
Evian? ??????. -G
? ???? ?????. ???? ????? -S
? ?????.
?? ?? ??? ???? ??, ?? ??? ?? ???? ?? ?? ??? ?? ???
git grep sth $(git rev-list --all)
??: http://stackoverflow.com/questions/2928584/how-to-grep-search-committed-code-in-the-git-history