GitHub management has become quite a hot topic among programmers and software developers over time. A surprising fact is that despite a lot of articles on Git and GitHub tutorials, GitHub project management, and GitHub repositories, the confusion persists in young brains.
In this article, 24insights will clear the air in crystal clear way to show how GitHub for ubuntu works.
The Difference Between Git and GitHub
This is the most frequently asked question by the beginners to GitHub project. We will break down this query into two parts:
- What is Git?
- What is GitHub?
What is Git
The literal definition of Git says: “Git is the distributed version control system designed to handle everything from small to extensive projects with speed and efficiency.”
As a beginner to Git project management, you must be wondering what a version control system is? The version control system (VCS) is a tool that keeps track of all the edited information that a user has made in the file.
By keeping a track record, VCS helps users to go back and see what changes were made. So that if you have made any mistake in the edited version, you can track it back and correct it easily. By defining Git as a version control system, means Git is the record keeper of all the modifications being made.
What is GitHub
Consider GitHub like a social media platform for programmers or software developers which connects Git users from all across the globe. Multiple users can work simultaneously on any project while sitting in a different part of the world.
Like all other social media platforms, services of GitHub for ubuntu purposes are also highlighted where it helps to connect people at a single stage for the welfare of humanity.
Now a query arises about using GitHub for project management. To grasp this, we have prepared a step-by-step tutorial of the GitHub project for beginners to understand it well. We suggest you practice these steps with us to acknowledge GitHub project management properly.
Here are the steps we will follow:
Step 1: GitHub signup/ login.
Step 2: GitHub Repository
Step 3: Master File
Step 4: Branching
Step 5: Pull Request
Step 6: Merge Command
Step 7: Delete Branch
Step 8: GitHub Downloading/ Cloning
Despite these steps, we will also learn how to upload code to GitHub?
Creating a GitHub account
For using GitHub for project management, the very first step is to create a Git account. Just visit github.com, sign up to GitHub for free, and BINGO! You are in. After you have logged in to GitHub, click the white box which says “Start a Project”. See the in the screenshot:
Creating a GitHub Repository aka Repo
After you have selected “Start a Project”, it’s time to create a GitHub repository. It is just an alternative name for project management. A repository contains folders, files, images, or anything that your data requires. Follow these steps to create a repository:
- Write down any name of your choice. For instance, I have entered “GitHub Project Management”, as depicted in the picture.
- Scroll down and click the green box that says “Create repository”
The Master File
Now it’s time to create a file, that we will be referring to as The MASTER file. MASTER is the original file by default, or you can say the standard file of your Git project management.
- The blue colored rectangle at the top has a blue colored line that suggests the names of files. Select README.md.
- Scroll down and click the green box that says “Commit new file”
BRANCHING IN Git PROJECT MANAGEMENT
GitHub Branching feature allows you to work simultaneously on different versions. Let us say that you and your three other friends are working on the same project while sitting in a different part of the world. You log into your GitHub account and start working. Once you have created the Master file, you notice that it needs to be improved further. Now you are also afraid whether or not the rest of your friends will approve it. What you do here, is you create a new file for your Git project [a new version] and name it, e.g. README_EDITED.md. It appears as a separate branch of the Master file. Changes appear as of green, yellow, or deep pink colour.
Follow the following steps for creating a branch:
- Select the option “Branch: master”
- Give your edition a name e.g. README_Edited.md
This file here is just a replica of the master file. To make some changes in the file, follow these steps:
- Click on the pencil icon at the top right corner.
- Describe what changes do you want to make? For instance, “I would like to make A, B, C changes to GitHub projects for beginners”
- Scroll down and click the green box saying “Commit changes”.
This is an essential part of understanding for beginners of Git project management. As you have made changes, you now need to show it to the rest of your project fellows. For this purpose, you have to request your teammates to have a look at the changes you made. So, you pull a request for them to see the modifications.
Once it is done, your changes are open for feedback or discussion. Your project partners can review the changes, give feedback, and discuss the modifications. Only after approving the changes, this request will be merged with the original file.
To pull a request you need to adopt the following steps:
- Click the option “Pull request” present at the top of the page.
- After clicking it, the screen will show a green coloured box saying: “Compare & pull request”.
- Now a description box will show where you have to describe your request. For instance, “I would like to make A, B, C changes in GitHub project for beginners”
- Scroll down and click “Create pull request”
Now once you have created the pull request, your Git project management members will review and approve it. After it gets the approval, it’s time to merge this README_Edited file with the original Master file.
For merging the file, you need to follow these steps:
- Scroll down and click the green box “Merge pull request”
- After that, click “Confirm merge” on the screen.
Once your request is merged with the original Master file, it is saved. Now you can freely delete the branch.
Cloning Or Downloading GitHub Repository
Before understanding the term Cloning, you need to understand two basic terminologies:
- Remote Repository
- Local Repository
Remote Repository: Remote repository is the standard repository that all your Git project management fellows are using to make modifications in a file. In simple words, the storage you have created for the first time is the remote repository. It is either stored on an internal server or a hosting service like GitHub.
Now, you need to download this remote repository to make a local replica of it. By doing this, you can edit and modify storage from any local source rather than the standard basis.
Just move to the top of page, follow the green box which says: “Cloning or downloading”.
HOW TO UPLOAD CODE TO GitHub:
In the screenshots depicted below, you will learn how to upload code to GitHub. Follow the following steps:
- Click the “+” option at the top right corner to create a new repository.
- Move to the right side, and click the white box which says “Upload files.”
- Give your repository a name. For example, I have named it: “GitHub project for beginners”. Check the box saying “Initialize this repository with README.
- Move to the right side, and click the white box which says “Upload files”
- Describe your command. Scroll down and click the green box saying “Commit Changes”
You have now learnt to upload the code to GitHub.
And that’s it. Congratulations! You have successfully learned to perform different tasks by using GitHub for project management.
WHAT HAVE YOU LEARNED IN GitHub projects for beginners?
- What is the difference between Git and GitHub?
- What is the benefit of using Version control systems?
- How to use GitHub for project management?
- How to create an account on github.com?
- What is a repository/ repo in GitHub?
- What are the basic steps of GitHub?
- How to download/ clone Git repository?
- How to upload code to GitHub?
By getting the answer of all these questions, we get the answer of the most important query that:
- How GitHub for ubuntu works?
EUREKA! Now you are capable of explaining this Git project management to everyone. We recommend you to keep practising it to scale your level up from “GitHub projects for beginners” to “GitHub projects for a pro”.
BY: SABA SARFRAZ KHAN