Courses / Portfolio & Interview Prep
21. Repository initialization (git init)
Creating a project repository and the initial commit to start version control.
1 min read Chapter 21 of 60
JavaScript
Repository initialization (git init)
Starting version control for a project by creating a Git repository and making the first commit so changes are tracked.
"I want to save and track my project's changes from the very first file I create."
Run git init to create a .git directory that tracks your project, add files to the index, and make an initial commit to record the starting state.
"I want to save and track my project's changes from the very first file I create."
Run git init to create a .git directory that tracks your project, add files to the index, and make an initial commit to record the starting state.