i am working in a project and as i make one change i commit it. Then, after commiting 3 or 4 changes i push it all.
What i would like to do is to push just one of those revisions that i have locally. can i do that? How?
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.
Try working in a local ‘work’ branch. This has advantages such as you can switch to a different branch if you get called to work on say, a bug.
When you’re ready to push: git checkout master, git pull, git merge work, git push, will be your normal flow.
However, you can cherry-pick commits from your work branch to the master, that way only those commits will be pushed.
You could likely do this even now.