I have made multiple commits but don’t want all commits to be pushed for now. Is there a way to push only those commits which I want?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have two options,
rebase
Say, you want to include 3 out of five most recent commits:
cherry pick
This involves a temporary branch and is a lot more work
Recommendations
--cherry-pickor--cherry-mark optionswithgit logto see the actual differences between refs (git log --cherry-pick --oneline master...origin/master)