1.
Answer the following questions using Figure 4.2.1
(a)
- Pushing to your origin.
- The push operation copies changes from your local repository to a remote repository.
- Pulling from your origin.
- The pull operation copies changes from a remote repository to your local repo. But which remote repo do you need to copy from?
- Pushing to the upstream.
- The push operation copies changes from your local repository to a remote repository. But, recall that you do not have permission to push to upstream.
- Pulling from the upstream .
- Correct. Pulling from the upstream copies the changes that have been merged into upstream into your local repository.
- Switching to your feature branch.
- Switching branches does not move information between your local repository and a remote repository.
Which action will copy changes from the upstream repository to your local repository?
Hint.
Look back to at the figure to see which arrow goes from the upstream to your local repository.
(b)
- Pushing to your origin.
- Correct. Pushing to your origin will copy changes from your local repository to your origin repository.
- Pulling from your origin.
- Pulling copies changes from a remote repository into your local repository.
- Pushing to the upstream.
- Pushing copies changes from your local repository to a remote repository. But recall that you do not have permission to push to upstream
main
. - Pulling from the upstream.
- Correct. Pulling from the upstream copies changes that have been merged into the upstream to your local repository.
- Switching to your feature branch.
- Switching branches does not move information between your local repository and a remote repository.
Which action copies changes from your local repository to your origin repository?
Hint.
Look back to at the figure to see which arrow goes from your local repository to the origin.