Square-root Square-root - 1 month ago 4
Git Question

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

So if I have a local branch called

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

pull --rebase origin master

Will it overwrite it?


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).