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
From the course: IntelliJ IDEA Community Edition Essential Training
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
-
-
-
-
-
-
-
-
(Locked)
Install Git1m 4s
-
(Locked)
Create a local Git repository3m 33s
-
(Locked)
Configure GitHub in IntelliJ IDEA1m 48s
-
(Locked)
Share a project on GitHub2m 36s
-
(Locked)
Pull changes from GitHub1m 29s
-
(Locked)
Commit and push changes to GitHub3m 38s
-
(Locked)
Manage multiple branches with Git3m 45s
-
(Locked)
Share code snippets as Gists1m 13s
-
(Locked)
-
-