Module 4 Flashcards
How to know if a pull request can be automatically merged?
Open a Pull Request in GitHub website and it will show me how the merge will go. I might need to rebase my changes in case of conflicts.
What is the difference between forking and cloning a remote repository in GitHub?
What is a code review and what is its purpose?
The deliberate and methodical gathering of other programmers to examine each other’s code.
The goal is to increase the code quality by checking for errors and reducing the amount of bugs. These reviews offer another chance to spot defects that went by undetected during development.
How does documenting my work promote more efficient collaboration?
To allow people to understand my changes without having to ask me directly. Otherwise, I might spend significant time explaining my changes to different people.
Why project maintainers should respond promptly to Pull Request?
To avoid the risk that commits done in the mean time by others cause conflicts that require rework to solve
What is a pipeline in terms of continuous integration/continuous delivery (CI/CD)?
The specific steps that need to run to obtain the desired result
What is an artifact in terms of continuous integration/continuous delivery (CI/CD) pipelines?
Any file generated as part of the CI/CD pipeline.
How do we reference issues in our commits with automatic links?
By using one of the keywords followed by a hashtag and the issue number.
Consider you have made some changes to your local copy of a Git repository. What happens to the remote repository?
The remote repository remains unchanged until you push your changes
Why is it important to execute pull requests instead of directly pushing changes to the main branch?
To review the code changes before they are merged.
What happens when you fork a repository?
A duplicate of the original repository is created in your GitHub account.