git log - Logging git commits till a commit id when pulled with git pull --rebase -
lets suppose git log has next commits
commit15 commit14 commit13 commit12 commit11 commit10 . . . commit1
i tried saving git log till commit 14 file by
git log --pretty=format:'%h|%h|%an|%ai|%s' $commitid | grep -v "merge branch 'master' of" > 'path log file should contain git log till commitid'
this working fine except 1 case,i.e.
when commit12 , commit13 pushed after pulling git pull --rebase
,when seek save git log till commit14 using git log commit14
cant see commits12 , commits13 when seek log till commit15 using git log commit15
commits 12 , 13 listed under commit14
i understand problem --rebase,is there way can log commits till particular id has commits below have been rebased onto top of it? (i saw git repo, commit12 , commit13 listed under commit14)
git git-log
No comments:
Post a Comment