Avoid multiple commits to get pushed #8214
-
I have a branch that contains the code for feature to implement. However, there were changes in the upstream during the feature development and when I updated my feature branch all the new commits came into my working tree as follows. If you see in the above image, only 3 commits are mine out of 20. If I push the branch then all the commits will be pushed again. How can I push only those commits that are mine? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Not sure how you got there without knowing the steps you took, but here are some tips...
|
Beta Was this translation helpful? Give feedback.
-
what about rebasing the head and dropping all the commits which are not required.
interactive console opens and comment out those commits which are note required |
Beta Was this translation helpful? Give feedback.
That looks correct 👍
The commits will be fine because they are in the
main
, when you do a diff or pull request, it will only show the difference