Difference between revisions of "Tutorial preparing to work with github"

From Let's Control It
Jump to navigation Jump to search
Line 36: Line 36:
 
== Installing Github Desktop ==
 
== Installing Github Desktop ==
  
The easiest work with github if you're new is with Github Desktop. (there are many other opensource alternatives if you're more experienced with git)
+
The easiest way to work with github if you're new is with Github Desktop. (there are many other opensource alternatives if you're more experienced with git)
 +
 
 +
With this tool you can clone the ESPEasy repository to your own pc, make changes, and send those changes back to github.
  
 
* Download Github Desktop:
 
* Download Github Desktop:
[[File:Reload platformio.png]]
+
[[File:Download github desktop.png]]
  
  
Start the installer and click thourgh it:
+
Start the installer and click though it:
 +
[[File:Install github desktop.png]]
  
Desktop will start automaticly with the welcome screen:
+
* Desktop will start automaticly with the welcome screen. Login with your github.com account:
 +
[[File:Gitdesktop login.png]]
  
 
Signup for a github account if you dont have one yet, and login to the Github Deskapp:
 
  
 
The configure step is usually ok:
 
The configure step is usually ok:
 +
[[File:Gitdesktop configure.png]]
  
 
Skip the Repositories step:
 
Skip the Repositories step:
 +
[[File:Gitdeskapp skip local.png]]
 +
  
 
Now you can clone your forked repository to your local computer.
 
Now you can clone your forked repository to your local computer.

Revision as of 17:26, 2 March 2017

In order to work with git and github, you'll need some one time preparation.

This may seem a bit of work, but it makes contributing to ESPEasy much easier for everyone.

Creating a github.com account

If you dont have a github account yet, create one for free here: https://github.com/join?source=hero-opensource

  • Choose the “Unlimited public repositories for free” option.
  • Go to your email and click the verify link.

Forking the ESPEasy repository

To be able to make changes and share them with us, you will need to fork our repository one time.

  • Login to your github.com with your account.
  • Go the the letscontrol ESPEasy repository, via https://github.com/letscontrolit/ESPEasy
  • Make sure you're in the correct repository and click the fork button in the upper right corner:

Espeasy fork button.png


Now you have forked the ESPEasy repository to your own github account:

Espeasy own fork.png


Now that you've forked ESPEasy to your own github account, you can start making improvements or fixes and send them to us via a pull request.

To be able to do that you need a tool to clone the files to your local computer, and to send the changes back to your github repository.

You can clone your repository to as many computers as you like. In fact: its a great way to make sure you're changes to the sourcecode on different computers doesn't get lost.


Installing Github Desktop

The easiest way to work with github if you're new is with Github Desktop. (there are many other opensource alternatives if you're more experienced with git)

With this tool you can clone the ESPEasy repository to your own pc, make changes, and send those changes back to github.

  • Download Github Desktop:

Download github desktop.png


Start the installer and click though it: Install github desktop.png

  • Desktop will start automaticly with the welcome screen. Login with your github.com account:

Gitdesktop login.png


The configure step is usually ok: Gitdesktop configure.png

Skip the Repositories step: Gitdeskapp skip local.png


Now you can clone your forked repository to your local computer.

In GitHub deskapp Click the + in the upper left corner Click the Clone tab Select the ESPEasy repository Click Clone ESPEasy: Select a play where you want to store the ESPEasy sourcecode.


Now you’re ready to work with git. We will explain that in the next tutorial.