Git is a DVCS that stores data in a file system made up of snapshots
Git mostly relies on local operations because most necessary information can be found in local resources
Every single change applied to any file or directory is tracked by Git. And, as the gatekeeper, Git will always detect file corruption or loss of information in transit
Git is set up to greatly minimize the possibility of irreversible damage to files, such as accidentally lost data. Git makes it extremely difficult for a snapshot of your file that is committed to be lost
Files in Git can reside in three main states: committed, modified and staged.
- Committed
Data is securely stored in a local database
- Modified
File has been changed but not committed to the database
1.crash cours 2.bootcamb 3.the denefitive 4.master git and github
In order to use Git, your computer must have it available. If you already have Git on your computer, you should make sure you have the latest version.
-Install as a package
-Install via another installer
-Install via another installer
1.Importing 2.Cloning
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
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.
1.After you edit a file, Git flags it as modified because of changes made after the previous commit 2.You stage the modified file. 3.Then, you commit staged changes.
