Loading, please wait...


What is GitHub?

May 09, 2020 Git, GitHub, 475 Views
Did you tryid GitHub? If not yet, checkout this article.

GitHub is the most popular web-based Git repository hosting system. With GitHub, you can push your repositories to the "cloud, which allows you to back up your code and collaborate with others. While Git is a command-line tool, GitHub provides a Web-based graphical interface.

🧐Things we can do with GitHub:

📌Clone remote repositories with git clone :

Whenever you join an engineering team is more than likely you will have to clone repos and that's when git clone comes into use. You are basically making a copy of a remote repository into your local computer.

📌Push a local repository to a remote repository with git push:

When you just create a new branch or whenever you're done committing the changes to your branch that's when we are ready to push and update our remote branch. By pushing our code we are now saying this is the version we want our remote repository to have ⁣

📌Keeping remote and local repositories in sync with git pull:

Whenever we are working on a branch we want to be sure our branch is up-to-date with the remote branch. We can use git fetch to pull down remote changes to our local but leaves our local branches untouched and then git merge to incorporate our remote commits to our local repo. Otherwise, we can use git pull which will pull down remote changes and automatically attempt to merge them. A pull request is when a repository contributor makes a formal request to merge a set of changes from one branch of a repo into another.

📌Did you know you can publish a static page on GH pages?

One of the things that are super cool about GitHub is how you can easily publish your own static page just on the settings tab free of cost! ⁣
⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⁣
There are a lot of GitHub alternatives and I definitely recommend you check them out and explore. ⁣
⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⁣
💬 What web-based repository hosting system do you use and why? I want to hear your thoughts in the comment section below👇🏼👇🏼


Related Article