Definition
Git is a software this allows you to keep track of changes made to a project over time. Git works by recording the changes do to a project, storing those changes, then allowing you to reference them as NE Eded.
Git project can be thought of as has three parts:
- A working Directory: where you'll be doing all the work:creating, editing, deleting and organizing files
- A Stagingarea: where you ' ll list changes your make to the working directory
- A Repository: Where Git permanently stores those changes as different versions of the project
Use Git commands to help keep track of changes made to a project:
git init
Creates a new Git repository
git status
Inspects the contents of the working directory and staging area
git add
Adds files from the working directory to the staging area
git diff
Shows the difference between the working directory and the staging area
git commit
Permanently stores file changes from the staging area in the repository
git log
Shows a list of all previous commits
Git-basic Git Workflow