From the course: IntelliJ IDEA Community Edition Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create a local Git repository

Create a local Git repository

From the course: IntelliJ IDEA Community Edition Essential Training

Start my 1-month free trial

Create a local Git repository

- [Instructor] Once you have Git installed, you can create what are known as repositories. A repository is where you store your source code files and Git tracks all of your changes. Each time you make a change, you commit those changes and then you'll have multiple versions of the application. Now, while it's very common to start off with Git by creating a repository online, you can actually create Git repositories that are purely local. To demonstrate this, I'll create a new Java project. I'll create the project from the command line app template and I'll name it Git project. Once the project has been created I'll add a bit of code to output something to the console and I'll say hello from Git then I'll run the application just to make sure all of that simple code works. And there's the output. Now to create the repository I'll go to the menu and select VCS, import into version control, create Git repository. Now…

Contents