GitHub Study Set

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

What is a GitHub repository?

A GitHub repository is used to organize a single project. Repositories can contain folders and files, images, videos, spreadsheets, and data sets - anything your project needs.

What should you include when you commit a branch?

A commit message to explain why the change was made Commit messages capture the history of your changes, so other contributors can understand what you've done and why.

How do you add changes to the master branch?

After opening a pull request, click the 'merge pull request' button to merge changes into the master branch. You can delete the branch after merging changes to master.

What should you always include in a GitHub repository?

Always include a README or a file with information about your project.

What is a GitHub branch?

Branches allow you to save different versions (copies) of a project. A GitHub branch is a single version of your repository. Branches are used to experiment and make edits before committing them to the master branch (original copy of the project). That way you keep bug fixes and feature work separate from the master branch and only merge changes when they're ready.

What's the main GitHub branch called in a project?

By default, the master branch is the main branch. When you create a branch off the master branch, you're making a copy, or snapshot, of master as it was at that point in time.

What's a GitHub commit?

Saved changes are called commits. Each commit has an associated commit message, which is a description explaining why a particular change was made.

What is a pull request?

When you open a pull request, you're proposing your changes and requesting someone review and pull in your contribution to merge them into their branch. Pull requests show diffs, or differences, of the content from both branches. The changes, additions, and subtractions are shown in green and red. You can even open pull requests in your own repository and merge them yourself.

When should you open a pull request?

You can open a Pull Request at any point during the development process: - when you have little or no code but want to share some screenshots or general ideas, - when you're stuck and need help or advice, or - when you're ready for someone to review your work.


संबंधित स्टडी सेट्स

Urinary system: Lecture final exam

View Set

ECO 1305 - Exam Two (w/ Examples)

View Set

Critical Thinking Final Exam MJC

View Set

Molecular Bio chapter 16 dna repair and crossing over practice questions

View Set