Link Search Menu Expand Document

GitHub Desktop

Git and GitHub

Git and GitHub are not the same thing. Git is an open-source, version control tool created in 2005 by developers working on the Linux operating system; GitHub is a company founded in 2008 that makes tools which integrate with git. You do not need GitHub to use git, but you cannot use GitHub without using git. There are many other alternatives to GitHub, such as GitLab, BitBucket, and “host-your-own” solutions such as gogs and gittea. All of these are referred to in git-speak as “remotes”, and all are completely optional. You do not need to use a remote to use git, but it will make sharing your code with others easier. source: https://product.hubspot.com/blog/git-and-github-tutorial-for-beginners

1. Useful guides

http://git-scm.com/book/en/v2

https://www.youtube.com/watch?v=w3jLJU7DT5E

https://www.youtube.com/watch?v=PQsJR8ci3J0

2. What is Git?

To understand GitHub, first there is need to have an understanding of Git. Git is a version control (similar to Google Docs, but better, where you can keep track of the changes made by different people at different time) system that keep track of the changes in your computer files and you may work together with multiple people. Although it is designed for software development, you can still use it to keep track of your personal files.

3. Why GitHub?

When developers create something (an app, for example)they make constant changes to the code, releasing new versions up to and after the first official release.

Version control systems keep these revisions straight, storing the modifications in a central repository. This allows developers to easily collaborate, as they can download a new version of the software, make changes, and upload the newest revision. Every developer can see these new changes, download them, and contribute.

Github is one of the online project hosting that use Git. This is also the services that are going to host Website, known as Github pages that uses Jekyll, at zero cost.

4. How does it work?

https://youtu.be/2MsN8gpT6jY

5. Instalation of GitHub Desktop

text to dosplay if no image

  1. Visit the download page for GitHub Desktop link:https://desktop.github.com/
  2. Click Download for Windows
  3. Click Run and save file.
  4. Install.
  5. In your computer’s Downloads folder, double-click GitHub Desktop.
  6. GitHub Desktop will launch after installation is complete.
  7. In next step create GitHub Pages User Account.
  8. Once the GitHub Pages User Account is verified you may Authorise GitHub Pages. This window pop up automatically during GitHub Desktop account creation process.

6. Creating new repository in GitHub

visit: https://training.github.com/downloads/github-git-cheat-sheet/

  1. Create a folder on your system (C:\My Repositorium_GitHub).
  2. This is local repository which connects the GitHub Pages.
  3. n GitHub Desktop open tab File and create new repository text to display if no image
  4. File- Repository-Create New Repository
  5. If there are any changes to safe - Summary (for example date of changes), optionally description, Commit to master and Push origin.

7. How to Clone Repository

  1. Go to GitHub Pages Repository you need to clone.
  2. Click on Code on the main page of the repository.
  3. To clone the repository choose “Clone with HTTPS”, number 1 and then number 2. text to display if no image
  4. In GitHub Desktop Select choose Clone Repository.
  5. Paste the URL you copied before.
  6. Click Clone to create your local clone.

About GitHub Pages

Useful functions:

https://love-coding.pl/pytania-rekrutacyjne/basic_git_commands_pl.pdf

You can use GitHub Pages to host a website about yourself, your organization, or your project directly from a GitHub repository.

GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories.

How to create Account on GitHub Pages

  1. Click: https://github.com/login
  2. Create new account

How to create Repository on GitHub Pages

  1. Click New repository.
  2. Create a new public repository for example name.github.io (the same nam you have on GitHub).
  3. In GitHub Pages choose settings - private or public
  4. Go to folder(C:\Repositorium_GitHub), and clone the new repository - commit and push changes.

How to share GitHub Repository with collaborators

  1. Go to GitHub Repository.
  2. Choose Settings - Manage access - write collaborator’s name (username)
  3. collaborator will receive e-mail and will accept invitation

How to preview GitHub Pages changes GitHub on Internet

  1. If you did changes in your repository, Open GitHub Desktop
  2. In Summary add date or name of changes you did, click Commit to Master and Push origin
  3. Open Repository in GitHub Pages