Posts

Showing posts from June, 2022

How To Push Specific Commit/Commits To Git Remote without commands? | All you need to know

Image
  Managing code using source control is an inevitable part of current Software development process. Most of us may be aware of how to push the local changes to remote repository in Git, but there may be situations where we have to choose specific Commits from an existing branch and push it to Git Remote. What is meant by Pushing Specific Commits To Git Remote? Let me take an example to explain "Pushing specific commits to Git Remote".  Above figure shows the history of a branch called "master". In this history you can see different commits out there. Out of those we want to maintain a separate branch in the remote with the commits highlighted in the above figure. Why do we need it? Simple reason why we need a separate branch in the remote with the specific commits may be that these commits are associated with a different feature that we are trying to develop and accidently it became part of the main branch. Therefore afterwards if we want to maintain or organize the