How to Get Started with Git and GitHub

Featured Github And Git

GitHub is currently the world’s largest host of open-source projects. There are many popular GitHub page examples including Atom text editor, TensorFlow by Google and React by Facebook. It is best known for housing advanced projects on Big Data, Artificial Intelligence or Internet of Things, but you can also find animations, emojis, games, and simpler software. The technique is somewhat analogous to “torrents” except for software and apps.

If you just started to exploring GitHub, you’ll find a steep learning curve. Therefore, we have prepared a step-by-step guide that will gently introduce you to the world of GitHub.

Also read: How to Get Started With GitHub Project Management

1. Create a GitHub account

Go to this link and create your GitHub account. You can start with a free account for individuals, which limits you to only three collaborators. There are professional, team, and enterprise editions which support unlimited collaborators.

Github Plans

Select what you plan to use GitHub for.

Github Purposes

2. Create Your First GitHub Repository

After your account is created and verified, click the “+” sign on the top-right to create a new repository.

How To Create New Repository Github

Choose whether you want your repository to be public or private. Don’t forget to check the box “Initialize the repository with README.” It is the the first item a visitor will see when visiting your repository. Include in the README a description of your project, what they can do with it, and how to install/use it.

Github Create New Repository

Once your first repository is created, you can see the repo page. This will be your home address on GitHub, also known as “master” branch. If you want new repositories to be added, you can create new branches which are separate from the main development branch.

Repository Created Github

Developers use these branches to store different file versions, ensure bug fixes, and other activities.

Create New Brand Github Repository

Tip: Protect your Git repositories by linking an SSH key to your Github account.

3. Download GitHub and Git to Create a Staging Environment on Your PC

Once your GitHub account and first repository are created, you need to create a staging environment on your PC to receive GitHub files and version updates. For this, you have to download and install GitHub Desktop. It supports Windows and macOS.

Git Desktop Download

After installation, you will have to sign in using your GitHub account. GitHub Desktop is used to import GitHub repository downloads, but it can also help you push your own updates to the repositories (more on that later).

Github Desktop Installed

You need another tool called “Git.” The difference between Git and GitHub is that the former is a version control system and the latter a cloud service. You can run Git locally on your computer because it is independent of GitHub. Git is what helps you run all the applications from a command terminal (more on that later).

Download Git

It takes a while to configure Git. Note down the unique email address it uses to register your account.

Configure Git

Git is installed as a GNU General Public License. The installation takes just a little while.

Git Setup Windows

Once it is installed, you can launch “GitBash,” which is the command terminal for Git used to run the software or applications downloaded from the GitHub repositories.

Git Setup Completed

4. Clone or Download Applications

To clone or download applications, go to any GitHub page of the developer. For example, here I visited the gamepage of a JavaScript RPG. You can either download it as a ZIP file or simply download the application to GitHub Desktop (see step 3). You can search for any GitHub repository on the GitHub browser homepage or GitHub desktop.

Download A Game Github

Once the application is imported to the GitHub dashboard, click “clone.”

Download A Game From Github

The application will now start cloning itself in your system. In a while, it will be available as a repository with your GitHub Desktop.

Cloning A Game Github Desktop

Once done, launch “Git.” (Refer to the installation steps in the above section.) Follow the instructions on the GitHub repo page on how to download and run the application.

Cloning Into Game

In this case, it was a simple game.

Launch Game Application Example Github

5. Contribute to GitHub Community

Do you want to contribute to the GitHub community? On GitHub, any saved changes are called “commits.” Make the changes by clicking the “README.md” file. Explain to other users why you made the changes.

Commit Changes Github

Finally, you’re at the heart of the GitHub community: “pull requests.” Make some changes and tell the author of the software or application to “pull” your changes into his or her GitHub repo. Here I added a Maven file.

Create Pull Request

You can also pull requests from GitHub Desktop.

Push Pull Repositories

Conclusion

GitHub repositories are one of the most awesome secrets of today’s Internet. From Big Data to IoT to industrial applications to fun games, it houses everything. Using this guide, you can start tinkering with these superapps right away.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sayak Boral Avatar

Read next

Suzanne Simard sealed paper birch and Douglas fir seedlings inside plastic bags, fed them carbon-14 and carbon-13 dioxide, and nine days later found carbon had crossed between species through fungal threads in the British Columbia soil beneath her boots
A species of jellyfish called Turritopsis dohrnii can revert its adult cells back to a juvenile polyp stage when injured or starving, effectively restarting its life cycle, and biologists have so far failed to identify any natural limit to how many times it can do this.
A Japanese man named Jiroemon Kimura, who lived to 116, was born in 1897 when Queen Victoria still ruled and died in 2013, meaning a single human life personally overlapped with the invention of the airplane, the atomic bomb, the internet, and Instagram
The Hollywood sign originally read HOLLYWOODLAND when it was built in 1923 as a real estate advertisement for a housing development, and it was only meant to stand for 18 months, but nobody ever got around to taking it down and the city eventually adopted it as a landmark
Almost all of the world’s internet traffic does not travel by satellite but through fibre-optic cables lying on the ocean floor, a hidden web of wires crossing the deepest parts of the sea to connect the continents.
People who flip their phone face down on every table aren’t being secretive. They figured out that staying interruptible meant handing their time to whoever rang first
Twitch vs. Facebook Gaming vs. YouTube Gaming: What’s the Best Live Game Streaming Platform?
Chrome Extensions Ownership Transfer is a Direct Threat to You: How to Stay Safe