Hardware Reference
In-Depth Information
Version Control, Basic Workflow
In this section we introduce a basic work process for version control. This starts with creating your own example
project in GitHub, then expands to working with projects other people have created, and then reviews the necessary
Git commands that allow you to manage a version controlled project. This includes finding out what changed, and
moving your code from your local repository to your remote repository on GitHub. It is possible to have more than one
remote repository, but for this chapter your repository on GitHub will be the remote repository we use.
Creating Your Own Project
Go to GitHub and select “New repository.” Call the repository HelloGithub. Then fill in the new repository
information, as shown in Figure 2-5 . Once finished, select “Create repository.”
Figure 2-5. HelloGithub project configuration page
You want to indicate that this is an Arduino project. All Arduino projects are by default C++ projects. Select the
.gitignore option for C++. This automatically keeps Git from tracking temp files and extraneous files common to C++
and text editors. Once you have selected “create repository,” you are presented with the default view of the project.
the interface should look like Figure 2-6 . This view shows you the source code for your project, and links to the many
features of GitHub.
 
Search WWH ::




Custom Search