Git TutorialLesson 5Free preview
Git Get Started
This lesson is part of Git · All levels
Summary
To start a project with Git, create a new repository with Git init, insert the file into the staging area with Git add, and then save it as commit with Git commit. The first commit is usually given the message "Initial commit" as the beginning of the project history. After that history can be viewed at any time with git.
Key points
- Starting line: git init, git add, then git commit -m "message"
- Git add. Set up all file changes to the staging area
- The commit message should be brief, clear, and descriptive
- Git log displays a list of commits along with hash and its messages
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.