Git and GitHub

Git is an open-source version control system that was started by Linus Trovalds who also created Linux.

Git allows you to control versions of source code keeping versions straight so other developers can easily work on the latest version and contribute and update their changes. It works as a developer’s collaborative platform and is now classed as one of the largest online storage spaces of collaborative works.  Version control of Git is similar to Bitbucket, Bitbucket is Git’s main competitor other similar systems include Subversion, CVS and Mercurial.  It allows coworkers who are both working on the same system to make changes and save them and upload them, Git will control the versions allowing you to also revert back to an earlier version if you need to.

You do not have to develop using Git version control users can download a version of software from GitHub and develop standalone outside of Git.

The ‘Hub’ of GitHub

GitHub.com is the name of the site, the Hub defines/labels the whole area where developers store their projects and network with colleagues and other developers.

Repository (also called Repo)

A repository is a location where all the files for a project are stored.  Each project has its own repository and can be accessed by a unique URL.

Create new repository

 

 

 

 

 

 

 

 

 

 

 

 

 

Forking 

When you create a new project based off another project that already exists in GitHub that you would like to contribute to you need to fork the repository and make the changes you’d like and release the revised project as a new repository.

*********************   See notes in my notepad college ********************************

Git Requests and Commands

Git is a command-line tool –  these are some of the main commands to add/update source code to GitHub: ADD, COMMIT, PUSH and PULL

 

Gists

Having created a GitHub account I have started to add gists (snippets) of my code to save code, which I may use again.

 

Advertisements