git - How do I merge one commit of a branch to another branch - use case -


i have branch access-permission @ local in github remote. made changes it, committed locally , pushed access-permission remote branch.

now require merge commit remote branch called staging. not have staging branch locally.

i may possibly clone remote staging branch local, checkout it, merge access-permission , commit remote staging branch. right way go? there way without having staging branch locally?

i don't have enough experience using git got confused. please advise.

update: enter image description here

what have described is correct way this. you'll have have local copy of staging branch in order merge between 2 branches.

it place handle possible conflicts durring merge.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -