Suppose i have three files - file 1
,file 2
and file 3
. I add them, commit and push it. It goes to the gerrit system,and suppose i find that i had to change something in the file 1
I abandon the patch in gerrit. In my local system I edit the file 1
and do git status then it will only show file 1
as modified.
My problem here is to push the modified file(file 1
in this case), file 2
and file 3
in a single patch and push it.
If I do git pull it will say already up to date
.
I tried git reset <previous commit id>
then add my changes and push it. which would work fine but I don't know if its the right method.
Can anyone help??