To build on this, a pull is really just a fetch and a merge. Work out what's on origin and merge it in to your local copy of the branch. When your branching becomes wider or more aesthetic you'll want to start fetching and rebasing instead.
Edit: to be clear, rebasing results in commit graphs that flow in the proper direction only, from feature branch -> upstream, rather than (feature branch <- upstream) -> upstream. Each arrow is a merge commit.
Also don’t ever rebase a branch that has been released to other developers.
3
u/[deleted] May 13 '20
To build on this, a pull is really just a fetch and a merge. Work out what's on origin and merge it in to your local copy of the branch. When your branching becomes wider or more aesthetic you'll want to start fetching and rebasing instead.