Here at GitHub, our developers, writers, and designers use branches for keeping bug fixes and feature work separate from our master production branch. Each commit has an associated commit message, which is a description explaining why a particular change was made. Tip: Open this guide in a separate browser window or tab so you can see it while you complete the steps in the tutorial. As soon as you make a commit, you can open a pull request and start a discussion, even before the code is finished. Now you have two branches, master and readme-edits. It also offers other common options such as a license file. Make and commit changes Bravo! GitHub makes it easy to add one at the same time you create your new repository. Your hello-world repository can be a place where you store ideas, resources, or even share and discuss things with others. On GitHub, saved changes are called commits. In the Example Comparisons box, select the branch you made, readme-edits, to compare with master the original. Pull requests show diffs, or differences, of the content from both branches. Open a Pull Request Nice edits! To learn more about the power of Pull Requests, we recommend reading the. You might also visit and get involved in an Open Source project. Repositories can contain folders and files, images, videos, spreadsheets, and data sets — anything your project needs. When a change is ready, they merge their branch into master. The Hello World project is a time-honored tradition in computer programming. 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. They look exactly the same, but not for long! We use branches to experiment and make edits before committing them to master. If someone else made changes to the master branch while you were working on your branch, you could pull in those updates. Create a Repository A repository is usually used to organize a single project. Pull Requests are the heart of collaboration on GitHub. GitHub is a code hosting platform for version control and collaboration. Create a Branch Branching is the way to work on different versions of a repository at one time. No coding necessary To complete this tutorial, you need a and Internet access. Tip: You can use and onto comments and Pull Requests. Tip: Check out our other , and for more on how to get started with GitHub. It is a simple exercise that gets you started when learning something new. Now that you have changes in a branch off of master, you can open a pull request. By default your repository has one branch named master which is considered to be the definitive branch. This tutorial teaches you GitHub essentials like repositories, branches, commits, and Pull Requests. Give your pull request a title and write a brief description of your changes. It lets you and others work together on projects from anywhere.。 。 。 。 。 。 。
次の