reading-notes

View project on GitHub

GitHub

GitHub Logo

-First, whas is GitHub?

GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere. This tutorial teaches you GitHub essentials like repositories, branches, commits, and Pull Requests.

After we got the diffinesion of the GitHub, Now we must download it to our devices to try it

Git can be installed in three ways:

1.Install as a package 2.Install via another installer 3.Download and compile the source code.

Git can be run in different operating system like:

  • Mac OS X
  • Windows
  • Linux

Now i will talk about work overflow in GitHub

  • Local Repository Structure: The local Git repository has three components: 1.Working Directory: The actual files reside here. 2.Index: The area used for staging. 3.Head: Points to the most recent commit

  • Saving Changes All files in a checked out (or working) copy of a project file are either in a tracked or untracked state.

Tracked

Tracked files can be modified, unmodified, or staged; they were part of the most recent file snapshot.

Untracked

Untracked files were not in the last snapshot and do not currently reside in the staging area.

After cloning a repository, files have tracked status and are unmodified because they have been checked out but not edited.

The Life Cycle of File Status

CYCLE