- Git is a version control system
- history of changes to your files
computer is local repository Git hub is remote repository
- Version Control is a system that allows you to revisit various versions of a file or set of files by recording changes. Through version control, one can revert a file or project to a previous version, track modifications and modifying individuals, and compare changes. By utilizing a Version Control System (VCS), mistakes with files can easily be rectified.
-
Snapshots, each saved commit leaves a snapshot of the work done. creating a time stamp of the work done.
-
Local operations, reducing the need for outside sources. still able to get work done without being connected to server.
-
Tracks every change applied to any file or directory that is tracked by git
-
Git is setup in a way where data loss is rare.
-
Files in git reside in three states, committed, modified and staged.
- git stauts
- git add .
- git add file name
- git commit
- git push origin main
- -m "message to leave is put here"