Tuesday, 15 July 2014

git - create local branch from existing remote branch -



git - create local branch from existing remote branch -

i want create branch existing remote branch (lets remote-a)and commit changes repo.

i have used below commands create local branch existing remote-a git checkout remote-a git branch master * remote-a

now have created local-b remote using below command git branch local-b git checkout local-b

how create sure changes have on local-b on top of remote-a when force on remote repo branch local-b on top of remote-a.

you want create branch on base of operations of remote-a, create changes on , force them on remote-a?

git checkout -b remote-a git pull origin remote-a git checkout -b remote-b

make changes on remote-b

git commit -a -m 'describe changes on remote-b branch' git checkout remote-a git merge remote-b git force origin remote-a

git git-branch

No comments:

Post a Comment