GitHub Basics — The Easy Way
Are you a beginner and dont know how to use github??
If you are a beginner and don't know how to use Github then this post is for you. In this post, I will guide you on how to use the Github account in a very easy way. GitHub is a website and service that we hear geeks rave about all the time, yet a lot of people don’t really understand what it does. Want to know what all the GitHub is about? Read on to find out.
First, we will need a Github account. If you don't have a Github account then click here to create a Github account else you can continue reading the post.
After having the Github account login into your account and now we are ready to use Github and understand the Github environment.
1. What is Github?
GitHub is a code hosting platform for collaboration and version control and lets you (and others) work together on projects.
2. What is Github Profile?
A GitHub profile is just like any other social media profile, like a Facebook or Twitter profile, except for the fact that it’s for GitHub. It’s also very programming-centric and helps promote the visibility of your GitHub-hosted projects and a Github profile link looks like this https://github.com/username/. For example, my Github user name is altaf99 so my Github profile link will be https://github.com/altaf99/.
Let's see how a Github profile looks like..
3. What is meant by contribution and contribution graph?
Your profile contributions graph is a record of contributions you’ve made to GitHub repositories. Contributions are timestamped according to Coordinated Universal Time (UTC) rather than your local time zone
Let's see how a Github Contribution Graph looks like..
4. What is a Repository or Repo?
A repository (usually abbreviated to “repo”) is a location where all the files for a particular project are stored. Each project has its own repo, and you can access it with a unique URL.
Let’s see how a Github Repository looks like..
How to download a project or repository from Github?
There are mainly two ways in which you can download a repository from Github.
- Direct download zip from the repository and extract it.
2. Using git clone command to clone or download the repository directly into your local machine via terminal. (we will learn more about git and git commands in further posts)
git clone https://github.com/altaf99/Friends-The-Social-Network.git
How to create a Github repository?
- Click on +
- Click on New Repository
3. Fill the details of the repository.
4. And Hit on the Create Repository button to create the repository.
Congratulations, you have learned the basics of Github and how to use it. In further posts, we will learn more advanced concepts.
I hope you enjoyed the post. Thank you for reading my post and I will bring more such post so stay tuned with me.