GitHub Interface and Features Flashcards
Q: What is a GitHub repository?
A: A storage space on GitHub where project files and their version history are kept.
Q: How do you create a new repository on GitHub?
A: Click the New button on the repositories page, fill in the details, and click Create Repository.
Q: What is a README file?
A: A markdown file (README.md) that provides an introduction or documentation for your project.
Q: How do you clone a GitHub repository?
A: Use the URL from the repository’s Code button and run git clone <repository-URL>.</repository-URL>
Q: What is a fork in GitHub?
A: A fork is a copy of another user’s repository that you can modify independently.
Q: How do you fork a repository?
A: Click the Fork button at the top-right corner of the repository page.
Q: What is a pull request?
A: A request to merge changes from one branch or fork into another branch of a repository.
Q: How do you create a pull request?
A: Navigate to the repository, click Pull Requests, then New Pull Request, and follow the prompts.
Q: What is a GitHub issue?
A: An issue is a way to track tasks, bugs, or feature requests within a repository.
Q: How do you create a GitHub issue?
A: Go to the Issues tab and click New Issue, then fill out the details and submit.
Q: What is a GitHub action?
A: A feature for automating workflows like CI/CD using YAML configuration files.
Q: How do you enable GitHub Actions in a repository?
A: Go to the Actions tab, choose a workflow template, and commit the .github/workflows file.
Q: What is a GitHub milestone?
A: A way to group issues and pull requests related to a specific goal or deadline.
Q: How do you add a milestone to an issue?
A: Open the issue, click the Milestone dropdown, and select or create a milestone.
Q: What are GitHub labels?
A: Tags that help categorize issues and pull requests, such as bug, enhancement, or help wanted.