Git Installation and Setup under Development Board
Make sure you have git installed in your Linux box
root@edison:~# opkg update
Downloading http://repo.opkg.net/edison/repo/all/Packages.gz.
Inflating http://repo.opkg.net/edison/repo/all/Packages.gz.
Updated list of available packages in /var/lib/opkg/all.
Downloading http://repo.opkg.net/edison/repo/edison/Packages.gz.
Inflating http://repo.opkg.net/edison/repo/edison/Packages.gz.
Updated list of available packages in /var/lib/opkg/edison.
Downloading http://repo.opkg.net/edison/repo/core2-32/Packages.gz.
Inflating http://repo.opkg.net/edison/repo/core2-32/Packages.gz.
Updated list of available packages in /var/lib/opkg/core2-32.
Downloading http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586//Packages.
Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/all/Packages.
Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/Packages.
Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/edison/Packages.
Collected errors:
* opkg_download: Failed to download http://iotdk.intel.com/repos/3.5/intelgala.
* opkg_download: Failed to download http://iotdk.intel.com/repos/3.5/iotdk/edi.
* opkg_download: Failed to download http://iotdk.intel.com/repos/3.5/iotdk/edi.
* opkg_download: Failed to download http://iotdk.intel.com/repos/3.5/iotdk/edi.
root@edison:~#
root@edison:~# opkg install git
Package git (2.0.1-r0) installed in root is up to date.
root@edison:~#
root@board:~/TheIoTLearningInitiative# git status
On branch master
Your branch is up-to-date with 'origin/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: README.md
no changes added to commit (use "git add" and/or "git commit -a")
root@board:~/TheIoTLearningInitiative# git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: README.md
root@board:~/TheIoTLearningInitiative#
Before we commit our changes, some sharing of wisdom
First line: Title starting with your githubusername, 50 chars max
Second line: A blank line
Third line: Description of the changes, as many lines as required, 80 chars max per line
Now, let's commit our changes
root@board:~/TheIoTLearningInitiative# git commit -s
First Line: Summary of the commit
Beggining of the third line you write the description of the commit
Signed-off-by: Name LastName <email@someplace.com>
<Save Changes>
[master 6d30317] First Line: Summary of the commit
1 file changed, 2 insertions(+), 2 deletions(-)
root@board:~/TheIoTLearningInitiative#
root@board:~/TheIoTLearningInitiative# git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
root@edison:~/TheIoTLearningInitiative/InternetOfThings101# git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: README.md
root@board:~/TheIoTLearningInitiative/InternetOfThings101# git commit -s
Internet of Things 101: 5.1.4.5 VCS: Project: Base Directory
Make a directory called "InternetOfThings101", create a README.md file
and push modifications
Signed-off-by: Name LastName <email@someplace.com>
<Save File>
[master 7b6f34c] Internet of Things 101: 5.1.4.5 VCS: Project: Base Directory
1 file changed, 1 insertion(+)
create mode 100644 InternetOfThings101/README.md
root@board:~/TheIoTLearningInitiative/InternetOfThings101# ls
README.md
root@board:~/TheIoTLearningInitiative/InternetOfThings101# git push
Username for 'https://github.com':
Password for 'https://username@github.com':
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 445 bytes | 0 bytes/s, done.
Total 4 (delta 0), reused 0 (delta 0)
To https://github.com/xe1gyq/TheIoTLearningInitiative.git
6d30317..09c72e1 master -> master
root@board:~/TheIoTLearningInitiative/InternetOfThings101# git show
commit 7b6f34c74473d50cd7078a2741b37706c2015500
Author: Name LastName <email@gmail.com>
Date: Sat Apr 30 22:04:46 2016 +0000
Internet of Things 101: 5.1.4.5 VCS: Project: Base Directory
Make a directory called "InternetOfThings101", create a README.md file
and push modifications
Signed-off-by: Name LastName <email@gmail.com>
diff --git a/InternetOfThings101/README.md b/InternetOfThings101/README.md
new file mode 100644
index 0000000..c8bd91a
--- /dev/null
+++ b/InternetOfThings101/README.md
@@ -0,0 +1 @@
+# Internet of Things 101