I guess what you need is an amended commit: git add e f git commit --amend git review
This way your old commit will be replaced with a new one, and thus Gerrit will create a new patch set for you (instead of a new change). Best, Gergely On 13 Oct 2015 11:19, "nmh" <nidhimitta...@gmail.com> wrote: > i did > > git clone. > made some changes. > git status shows changed files. > > did > git commit -a > git review. > > (a,b,c,d,e,f)(lets say these are files changed in this commit) > all okay. > ---------------------------------------------------------------------- > > Now got some review comments, > worked on files e,f -> e' f' > > git status > shows changed files e' f' only > > For some reason, i wanted to create a separate commit, not a patch for > these 6 files now. > (a,b,c,d,e',f') > > > How to do that ? > > if i do > git commit -a (is it right ?)(Will it take only e' f' or all 6 files > a,b,c,d,e',f' ?) > ========================================================================== > > > > > > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to git-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.