I already made a few changes on my commit and finalize my working copy, after that I did git push too.
But, suddenly I found a little problem on my modified files that has been already pushed to bitbucket repo. So, without undoing, I did manually changed my files into default for the first time. This is the workflow.
C1
README.md:
"This is the content of the first readme on README.md"
git add README.mdgit commit -m 'initialize README.md'git push -u origin master- DONE!
C2
after that, I updated my files into:
The content is new on README.md
- like above
- DONE!
C3 suddenly I made a few changes like these:
This is the content of the first readme on README.md add a few new lines add a few new lines
git add README.md- DONE!
I'm can't do commit on this state or I'll lose my C2 changes. In this case, I wanna git push my C3 and before I can continue my working copy, I wanna merge C2 and C3, but only the "changes". So, in this case, would be like these:
The content is new on README.md add a few new lines add a few new lines
The question why I did this, because I forgot to work on add a few lines first before modifying "the first line".
I don't think git revert would do magic. Thank you very much for your attention! :)
EDIT: git cherry-pick would also overwritten the local changes T___T