Hardware Reference
In-Depth Information
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Add your GitHub name to the code to test creating a pull request");
Serial.println("Hello Github from:");
Serial.println("@Ricklon");
Serial.println("@ProArd");
Serial.println(“@YourGitHubUsername”);
}
Once you save this code you can check the repository for the change by issuing the command:
$ git status
Result:
# On branch master
# Changes not staged for commit:
# (use "git add <file>…" to update what will be committed)
# (use "git checkout -- <file>…" to discard changes in working directory)
#
# modified: HelloFork.ino
The status result shows that you modified HelloFork.ino. This change needs to be committed to your local
repository with the following command:
git commit -m "Added a new username to the HelloFork.ino sketch." HelloFork.ino
Result:
[master f6367cf] Added a new username to the HelloFork.ino sketch.
1 file changed, 1 insertion(+)
The commit uses the “ -m ” to specify the message. After the message can be a list of files, paths, and or wildcards
to specify the file names and directories to include in the commit. If you want to commit all changed, added, and
deleted files, you can use the “ -a ” flag. This flag stands for “all.” The message can contain the Markdown shortcuts we
described in the documentation section, like @username to mention a user and link to their account. Now that the file
is committed, it is time to push the commit to your GitHub repository. That can be done be issue the command:
$ git push
Result:
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 408 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
To git@github.com:ricklon/HelloFork.git
4e28d3f..f6367cf master -> master
Search WWH ::




Custom Search