Lesson 2 of 8
git init & git status
Every Git project starts with a repository. Use git init to create a new repository. Use git status to see which files have changed and which are ready to be saved.
When a file is new or modified, Git sees it as "untracked" or "modified." You need to explicitly tell Git which changes to save.
GIT
# Create a new Git repository
git init
# Check the current status
git status
# Output examples:
# - Untracked files: new files Git does not know about
# - Modified: files that changed since last save
# - Staged: files ready to be saved