GitHub Project
Last updated
Was this helpful?
Last updated
Was this helpful?
GitHub is a web-based source code repository. It acts as a centralized location for software developers to control and manage free and open source software development. Inside GitHub, Libelium has created a project Waspmote API, the user can found this project in
Important, all user that want use GitHub, must be registered in .
This new feature is aimed at users to want improve, correct bug or add functionality to share with the community must:
Clone the repository (to fork) to be copied to your account.
Making changes in your copy.
Finish issuing a pull request to the owner of the original repository.
Libelium maintenance two repositories:
Waspmote-API repository:
Waspmote-API Unstable repository:
Waspmote-API repository is the official version of Waspmote API. The user only have read access. Nobody can push. The repository may only be downloaded.
Waspmote-API Unstable repository is the official version of Waspmote API. Users who want to work with this repository, should clone the Waspmote-API Unestable repository. The user must work about own repository, when a user wants to share their improvements, detect and fix any errors, their must carry out a "Pull Request" about Waspmote-API Unstable.
Windows
Download and install the last release of Git, can be found in:
Linux
There are multiple ways of installing Git on Linux. Depending on which Linux distribution you're using and whether it provides binary packages for Git, you can either install a binary package or install from source.
Debian/Ubuntu
Fedora
Gentoo
FreeBSD
Solaris 11 Express
OpenBSD
Mac OS
After install Git, the user must generate an SSH key. This is the key used for accessing your GitHub repository. Open a terminal window on Linux/OS X or the Git Bash on Windows.
Libelium has chosen a SmartGit/Hg like a graphical Git client which runs on all major platforms. Git is a distributed version control system (DVCS). SmartGit/Hg's target audience are users who need to manage a number of related files in a directory structure, to coordinate access to these files in a multi-user environment, and to track changes to them. Typical areas of application include software projects, documentation projects and website projects.
Windows
The steps for install SmartGit/Hg in Windows are:
Unzip the downloaded file.
Execute setup-version-jre.exe and follow the installation instructions.
Linux
If there is no JRE present on your system yet, use the package manager of your distribution to install Java, e.g. from OpenJDK, or download from oracle.com.
The steps for install SmartGit/Hg in Linux are:
Unzip the downloaded file, execute next command:
$ tar xvf smartgithg-generic-version.tar.gz
SmartGit/Hg are inside smartgithg-version folder-
Mac OS 10.5 +
For Mac OS X, version 10.5 or newer, the necessary JRE is already installed on your system or will be downloaded automatically the first time you launch the application.
The steps for install SmartGit/Hg in Linux are:
Download the executable from www.syntevo.com/smartgithg/download.htlm​
Unzip the downloaded file, execute next command:
$ tar xvf smartgithg-generic-version.tar.gz
SmartGit/Hg are inside smartgithg-version folder-
All steps to configure git client are equals for all platforms.
Accept the license for SmargGit/Hg
Select Non-commercial use only, Waspmote API is open source, with GPLv3 license.
Specify the path to your "git" executable.
Select use SmartGit/Hg as SSH client.
Specify your user name and your mail to store your commits.
Select "My name main hosting provider is GitHub", and complete the fields with name and pass of GitHub user.
Select "Do not use a master password"
Specify the Git or SVN repository to clone. The repository of Waspmote API Unestable project is:
Select authentication private key type and write private key file and passphrase use in generation SSH key.
Specify the local directory for the new repository
Last, specify the name of the project.
In this threads users can try and answer your questions with the Libelium technical team.
It is also mandatory for a "Pull Request" to be reviewed and accepted. Users must explain in the forum, what modifications want to commit to the Waspmote API Unstable Repository.
Create new fork means clone a repository on your own account. Thus each user can make their own changes. All user of GitHub can create their own fork. It is possible to make fork of Waspmote-API repository and Waspmote-API Unstable repository.
Libelium recommend that each user create a new fork and work on their own repositories.
Create a new repository can be done from the web. To create new repository press the button "fork"
Branch is a separate line of code with its own history. You can create a new branch of an existing one and change the code independently of other branches.
Commit is like committing changes. This creates a new revision, which can be retrieved later, for example, if you want to view or retrieve the source code for an older version. Each commit contains the author and committer or who makes the changes, making it possible to identify the source of change. The author and the committer could be different people.
When a user performs commit, this change will apply to your local repository pressing "commit". In order to upload to the user's account in GitHub you must run "commit & push"from the program SmartGit/Hg
To add your code to the Waspmote API Unstable repository, must execute "Pull Request" for the changes to be reviewed and accepted.
Once the code is submited, the Libelium Dev Team will review it and will back to you with any doubt or question in order to review it properly.
IMPORTANT: Addition it is also mandatory for a "Pull Request" to be reviewed and accepted. Users must explain in the Libelium Forum, what modifications made to Waspmote API Unstable code.
One way it is download from , other options is use MacPorts () and install executing:
Create free account in .
You can find more information on how to generate SSH Key in
The user can found SmartGit/Hg in .
Download the Smartgithg from
Download the executable from
:Libelium/waspmoteapi_unstable.git
Inside Forum Libelium LINK PENDIENTE (), exist a new thread named "Repository Code for Developers".
In this guide can be found how create new fork for own project.
Branch management is an important part to the git workflow. The user can also choose to manage branches directly on
More information about how create and delete branches on repository can be found in:
Can find detailed information on how to perform a "Pull Request" .