If I want to apply a specific commit to another branch, I can use git-cherry-pick
First I will check which ID I want to commint to another branch:
git log
After reviewing the commit history, press q to exit the log view and return to the command line.
In my case, the commit ID that I want to cherry-pick is 885cbf7e8090e3b040924570fdb574bb63ee5914.
Now switch to the target branch, for example liveDataFromSeparateService:
git checkout liveDataFromSeparateService
Now execute the cherry-pick command:
git cherry-pick 885cbf7e8090e3b040924570fdb574bb63ee5914
Finally, push the changes to the remote repository:
git push
If you are using GitHub, you may now see pull requests (PRs) related to this change. In most cases, you can safely ignore them.