- we’ll move into the code directory
cd repository
- Next, you want to ensure you’re in the correct branch by navigating to it with the git checkout command:
git checkout new-branch
- Then, run git fetch for the most recent upstream version of the code:
git fetch origin