Learn how to code: the complete guide for beginners
GitHub is a great tool, but it is definitely a bit confusing the first time (and maybe a few times afterwards). GitHub is likely to have created a software (for OS X and Windows) to facilitate the process. However, it is good to learn the old fashioned way otherwise your options in the simplified software will be meaningless. Let’s start with walking through the bases.
First step: Sign up for GitHub
Here’s the easy part: you have a GitHub account listing on the first page. After filling out the form, GitHub will sign and take you to your new vacuum cleaner. In the center of the page you will see the training camp (pictured right). Let’s go through it to set up your account and later create your first deposit. Click “Configure Git” to start.
Step Two: Install Git
GitHub exists because an application called git version control. The site is based on how git works, and git is old enough. It crosses the command line and does not have the fancy GUI. As it was done to handle the code you wrote, this should not sound too frightening. (Of course, as mentioned above, GitHub makes wonderful software for you to use their service without the command line, but that will not help much unless you know the basics).
Git works by reading a local repository of code (only a folder that contains code for your project) in your computer and reflection coding elsewhere (in this case, GitHub servers). Initially, we are committed (ie sending) all your local repository to GitHub, but it’s just a matter of times. As you continue to work on your code, just make changes. GitHub will follow the changes, creating different versions of files so you can go back to old if you want (or just keep track of these changes for other reasons). This is the main reason why you want to use a version control system like git on your own but the additional surface benefits when git is used to manage the code with other people working on your project. When several developers commit code with Git, GitHub becomes a central repository where all code in which all work can be kept synchronized. You confirm your changes and other developers they have been extracted (ie, sync your local repository). You will do the same with your code.
Git makes all this happen, you have to download the latest version and install it. In OS X, simply install the command line of the application. In Windows, you will get a few other articles. We discuss how they work in the next step.
Step Three: Configure Git
To configure git, you must make its way into the command line. In OS X, this means that to launch the Terminal application (Hard Drive -> Applications -> Utilities -> Terminal) and this means Windows Git Bash launch the application you just installed, not the command prompt Windows. When you are ready, speak to your name:
Config Git user.name –global “Your name here”
For example, mine might look like I’m using a test account for this example:
Config Git user.name –global “Adam Dachis”
You can put the name you want but then you have to enter your email and that email must be the email you used to sign up on GitHub:
Git config –global user.email “firstname.lastname@example.org”
If for some reason you have registered with GitHub with the wrong email address, you will need to change it.
Now, to always avoid entering your login credentials and generating SSH keys, you want to install the wizard credentials so that your passwords are cached. If you are on Windows, download and install. If you are on OS X, you will have to manage this through the terminal. To start, use this command to download help credentials:
Or loop -s \
This will download a small small file and should not take too long. When you are finished, enter the following command to ensure that the permissions are correct on the file you just downloaded (and fix or not):
Chmod u + x git-credential-osxkeychain
It is now time to install the