Using Git/GitHub

Description:

From Wikipedia:

Git (/ɡɪt/) is a version control system that is widely used for software development and other version control tasks. It is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows.

GitHub is a web-based Git repository hosting service. It offers all of the distributed revision control and source code management (SCM) functionality of Git as well as adding its own features. Unlike Git, which is strictly a command-line tool, GitHub provides a Web-based graphical interface and desktop as well as mobile integration. It also provides access control and several collaboration features such as bug tracking, feature requests, task management, and wikis for every project.

Documentation:

1.) Pro Git book: https://git-scm.com/book/en/v2. The Pro Git book is a great resource for first time git users also in becoming an advanced user. Chapters 1-3 are recommended for getting started.

2.) Official Git Documentation: https://git-scm.com/documentation

Also on that page are some helpful tutorial videos.

3.) GitHub Guides: https://guides.github.com/

Git Basic Commands:

The basic git commands that you will need to become familiar with include:

Getting changes from the remote repository:

git fetch -> Pulls changes from the remote repository into the local read-only repository.

git merge -> Moves changes from the local read-only repository into the local working branch.

Saving and commiting local changes:

git add -> Stages local changes to be committed.

git commit -> Commits changes locally.

git push -> Commits locally committed changes to the remove repository.

Helpful Commands:

git status -> Displays the current local repository status and displays files that are committed, staged, or waiting to be staged.

git log -> Displays the git log file.