Square-root Square-root - 2 months ago 12
Git Question

Pulling a remote repo that has same branch name as local?

So if I have a local branch called

animal
and then someone else
publishes a remote branch in GitHub that has the same name
animal
. What happens if I try to:

pull --rebase origin master


Will it overwrite it?

Answer

no, you'd just be rebasing your local animal from origin master. you will only have trouble when trying to push your animal to the same origin (branch already exists).