I want to create a branch from an existing remote branch (let's say remote-A) and then commit the changes to the repository.
I have used the below commands to create a local branch from the existing remote-A
$git checkout remote-A
git branch
master
* remote-A
Now I have created local-B from Remote A using the below commands
git branch local-B
git checkout local-B
How do I make sure the changes I have on local-B are on top of remote-A so that when I push local-B to the remote repo, the changes are on top of remote-A?