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.

Commit and push changes to GitHub

Commit and push changes to GitHub

From the course: IntelliJ IDEA Community Edition Essential Training

Start my 1-month free trial

Commit and push changes to GitHub

- [Instructor] When you make changes to your application and want to check them into version control that's called committing your changes in Git. To demonstrate this, I'm starting with this fresh project it just has a main class. And I'm going to add a new Java class that I'll call person. Each time you add a new file to a project that has a good repository. You should see this dialogue asking whether you want to add the following file or files to Git. I'll click on add. And now I have uncommitted changes. I'll come back to the main class and I'll add a reference to that new class. I'll create a new variable called person and now instantiate it with the person class. And now I have changes in two files. Now I want to commit those changes. I'll go to the project in the project window and right click, then I'll choose Git and commit directory. I'll see this user interface pop up. I see a listing of all the files…

Contents