Oh, but there are 2 trees: local and remote
ID: git-tips/oh-but-there-are-2-trees-local-and-remote
Oh, but there are 2 trees: local and remote by Ciro Santilli 35 Updated 2025-01-29 +Created 1970-01-01
Oh but there are usually 2 trees: local and remote.
So you also have to learn how to observe and modify and sync with the remote tree!
But basically:to update the remote tree. And then you can use it exactly like any other branch, except you prefix them with the remote (usually
git fetch
origin/*
), e.g.:origin/master
is the latest fetch of the remote version ofmaster
origin/my-feature
is the latest fetch of the remote version ofmy-feature
New to topics? Read the docs here!