Do you ever ask yourself, “What is GitHub?” or wish you had an opportunity to learn the basics of Git? If you’ve always wanted to use GitHub, but haven’t quite been able to get up to speed. In this “Github for beginners” post, you will get introduced to Github & its various commands. It talks about Github pages, repo, installs Git, Git commands & desktop, hosting with Jekyll, etc for complete newbies. This beginner-friendly article is for you.
Github is a web-based hosting service for version control using Git. Github is a place where developers store their open source software projects and networks with like-minded people and work together without any conflicts. Github provides access control and several collaboration features like creating repositories, pull requests, merge, commits, branches, etc for each and every project to make developer life better.
GitHub is a code hosting platform for collaboration and version control. GitHub lets you (and others) work together on projects.
Github = Git(Version Control System) & Hub(Code hosting platform).
Git is an Open Source DISTRIBUTED VERSION CONTROL SYSTEM. It is mainly used for source code management in software development. It is a Command Line Interface(CLI) tool and can be mastered easily.
Version control systems are a category of software tools that help a software team manage changes to source code over time. Version control software keeps track of every modification to the code in a special kind of database. If a mistake is made, developers can turn back the clock and compare earlier versions of the code to help fix the mistake while minimizing disruption to all team members.
VCS treats each file/change as a revision and coordinates work on those change among multiple people providing information like who edited or created it, when, what changes were made, etc. It also provides the ability to revert a file/change to a previous revision for allowing editors to track each other’s edits, correct mistakes, and defend against vandalism and spamming. VCS can be distributed or centralized, but distributed has more advantages.
This development doesn’t depend on a single entity as VCS tends to be distributed. Each entity is treated with equal importance as others.
GitHub Pages is a static site hosting service designed to host your personal, organization, or project pages directly from a GitHub repository. You can create and publish GitHub Pages sites online using the Jekyll Static site generator Or if you prefer to work locally, you can use GitHub Desktop or the command line. GitHub Pages doesn’t support server-side code such as PHP, Ruby, or Python.
Ready to get started? Build your own site from scratch or generate one for your project. You get one site per GitHub account and organization, and unlimited project sites.
Let's get started at Github pages.
Install Git on Windows. Download the latest Git for Windows installer. When you’ve successfully started the installer, you should see the Git Setup wizard screen. Open a Command Prompt (or Git Bash if during installation you elected not to use Git from the Windows Command Prompt).
Before you start using Git, you have to make it available on your computer. Even if it’s already installed, it’s probably a good idea to update to the latest version. You can either install it as a package or via another installer or download the source code and compile it yourself.
Git is responsible for everything GitHub-related that happens locally on your computer.
To use Git on the command line, you’ll need to download, install, and configure Git on your computer.
If you want to work with Git locally, but don’t want to use the command line, you can instead download and install the GitHub Desktop client.
Download & install latest version of Git at official Git downloads page.
GitHub Desktop is a fast and easy way to contribute to projects from Windows and OS X, whether you are a seasoned user or new user, GitHub Desktop is designed to simplify the all process and workflow in your GitHub and replace GitHub for Mac and Windows with a unified experience across both platforms. GitHub Desktop is an open source Electron-based GitHub app written in TypeScript and uses React.
GitHub Desktop will allow us to easily start using version control. GitHub Desktop offers a Graphical User Interface(GUI) to use Git. A GUI allows users to interact with a program using a visual interface rather than relying on text commands. Though there are some potential advantages to using the command line version of Git in the long run, using a GUI can reduce the learning curve of using version control and Git.
Extend your GitHub workflow beyond your browser with GitHub Desktop. Get a unified cross-platform experience that’s completely open source and ready to customize.
Download latest version of Github desktop
You can download GitHub Desktop “Classic” for Windows or OS X here. Once you have downloaded the file, unzip it and open the app, following the instructions for logging in to your GitHub account. Once you have installed GitHub Desktop and followed the setup instructions we can start using the software with a text document.
Here is the complete installation guide to install Github Desktop.
To use Git, developers use specific commands to copy, create, change, and combine code. These commands can be executed directly from the command line or by using an application like GitHub Desktop.
Here is the complete list of Github commands.
A repository is like a folder for your project. Your project’s repository contains all of your project’s files and stores each file’s revision history. You can also discuss and manage your project’s work within the repository. You can own repositories individually, or you can share ownership of repositories with other people in an organization.</p>
Yes, we can host our personal website on Github as Github pages for free of cost. We use a static site generator called Jekyll to serve as a CMS for the publishers and the GitHub. Importantly, we can use our own custom domain to get hosted on the Github.
Here is the complete guide to host a website using Github pages.
Jekyll is a static site generator, which in reduced terms means that it will let you develop a website with some dynamic-like functionalities like automatic navigation menus, cross-links and so on; but the end result is actually just generated as static files (files that only need to be served, not computed). Jekyll Static files only need to be hosted on a web server (which makes it cheap) and are easily deployable. You give it text written in your favorite markup language and it churns through layouts to create a static website. Throughout that process, you can tweak how you want the site URLs to look, what data gets displayed in the layout, and many more.
Most, importantly, we can blog with Jekyll, as you were reading this article, my blog(Karunakar Patel blog) is hosted on Github served as Github pages for free by using Jekyll.
GitHub Pages are powered by Jekyll, so you can easily deploy your site using GitHub for free—custom domain name and all.
Let's get started at Jekyll(static site generator) →
Go to your GitHub Pages site’s repository settings. Under “Custom domain”, add or remove your custom domain and click “Save”. Setting “custom domain” creates a file named CNAME in the same repository. That’s it we add a custom domain name to Github.
Learn more about adding a custom domain name to Github pages →
HTTPS adds a layer of encryption that prevents others from snooping on or tampering with traffic to your site. You can enforce HTTPS for your GitHub Pages site to transparently redirect all HTTP requests to HTTPS.
If your site exceeds these usage quotas, we may not be able to serve your site, or you may receive a polite email from GitHub Support or GitHub Premium Support suggesting strategies for reducing your site’s impact on our servers, including putting a third-party content distribution network(CDN) in front of your site, making use of other GitHub features, such as releases, or moving to a different hosting service that might better fit your needs.
GitHub Pages is not intended for or allowed to be used as a free web hosting service to run your online business, e-commerce site, or any other website that is primarily directed at either facilitating commercial transactions or providing commercial software as a service (SaaS).
@ Copyright 2019. This Theme Is Highly Customized And Rediculously Designed By Karunakar Patel.