Home Step-by-Step Guide to Developing on GitHub(1/3) (English)
Post
Cancel

Step-by-Step Guide to Developing on GitHub(1/3) (English)

Git vs Github vs Gitlab

Let’s Start with a Brief Introduction:

Git is a distributed version control system designed to handle everything from small to very large projects efficiently. Its main features include:

  1. Distributed Development: Each developer has a local copy of the entire repository history.
  2. Branching and Merging: Git allows developers to create branches to work independently on different features or fixes, which can then be merged back into the main branch upon completion.
  3. Speed and Performance: Git is optimized for performance, making it capable of efficiently handling large projects.

GitHub s a web-based platform that uses Git for version control. It provides a collaborative environment for developers to host and review code, manage projects, and build software. Since it uses Git for version control, it includes all the features of Git and adds the following:

  1. Issues: Track tasks, feature enhancements, and bug reports.
  2. Actions: Automate workflows such as continuous integration and deployment.
  3. Social Coding: Developers can follow other people’s repositories on GitHub, enabling collaborative development and learning.

Similar to GitHub, GitLab is a web-based platform based on Git, but it has a broader scope, encompassing not just code management but also the entire DevOps lifecycle. This includes:

CI/CD (Continuous Integration/Continuous Deployment): GitLab has built-in CI/CD tools that automate testing and deployment processes.

Demonstration of Using GitHub for Development

Follow GitHub’s instructions to register. There’s nothing special to explain here.

Desktop View

After successfully registering and logging in, let’s proceed with our tutorial.

step 1 : create repository

A repository (often shortened to repo) is where you store your code.

Desktop View

Fill in the repo information and check the option to automatically add a README. Then, create the repository.

Desktop View

Once the repo is created, you will see a main branch and the README file. This is why we recommended adding a README; it automatically initializes a branch on the server.

Desktop View

step 2 : Download a GUI for Version Control

(Recommended GUIs by Git)[https://git-scm.com/downloads/guis/]

Desktop View

In this demonstration, we will use Sourcetree.

step 3 : Connect GitHub with Sourcetree

Open Sourcetree and find the accounts section to add the GitHub account you just created.

Desktop View

Select GitHub

Desktop View

Click on “Connect Account.”

Desktop View

A webpage will open for authentication.

Desktop View

After completing the authentication process, you will see your account in Sourcetree.

Desktop View

Choose https as the protocol.

Desktop View

Copy the URL of your GitHub repository from the webpage.

Desktop View

Clone the repository in Sourcetree.

Desktop View

You should see the README file from the repository.

Desktop View

Congratulations! You have completed the setup. Happy coding!

☝ツ☝

This post is licensed under CC BY 4.0 by the author.

👈 ツ 👍