Google IT Automation with Python Professional Certificate • STUDY MODE
PULL REQUESTS
QUESTION 1 OF 5
What is the difference between using squash and fixup when rebasing?
Awesome! The fixup operation will keep the original message and discard the message from the fixup commit, while squash combines them.
A
Squash deletes previous commits.
B
Squash combines the commit messages into one. Fixup discards the new commit message.Correct Answer
C
Squash only works on Apple operating systems.
D
Fixup combines the commit messages into one. Squash discards the commit message.
QUESTION 2 OF 5
What is a pull request?
Right on! You send a pull request to the owner of the repository in order for them to incorporate it into their tree.
A
The owner of the target repository requesting you to add your changes.
B
A request sent to the owner and collaborators of the target repository to pull your recent changes.Correct Answer
C
A request to delete previous changes.
D
A request for a specific feature in the next version.
QUESTION 3 OF 5
Under what circumstances is a new fork created?
Nice work! For instance, when you want to propose changes to someone else)s project, or base your own project off of theirs.
A
When you want to experiment with changes without affecting the main repository.Correct Answer
B
When you clone a remote repository to your local machine.
C
During a merge conflict.
D
When there are too many branches.
QUESTION 4 OF 5
What combination of command and flags will force Git to push the current snapshot to the repo as it is, possibly resulting in permanent data loss?
Awesome! git push with the -f flag forcibly replaces the old commits with the new one and forces Git to push the current snapshot to the repo as it is. This can be dangerous as it can lead to remote changes being permanently lost and is not recommended unless you)re pushing fixes to your own fork (nobody else is using it) such as in the case after doing interactive rebasing to squash multiple commits into one as demonstrated.
A
git push -fCorrect Answer
B
git log --graph --oneline --all
C
git status
D
git rebase -i
QUESTION 5 OF 5
When using interactive rebase, which option is the default, and takes the commits and rebases them against the branch we selected?
Great job! The pick keyword takes the commits and rebases them against the branch we have chosen.
A
squash
B
edit
C
reword
D
pickCorrect Answer
Ready to test your recall?
What is the difference between using squash and fixup when rebasing?
Awesome! The fixup operation will keep the original message and discard the message from the fixup commit, while squash combines them.
A
Squash deletes previous commits.
B
Squash combines the commit messages into one. Fixup discards the new commit message.
C
Squash only works on Apple operating systems.
D
Fixup combines the commit messages into one. Squash discards the commit message.