![intellij delete project intellij delete project](https://examples.javacodegeeks.com/wp-content/uploads/2018/07/1.jpg)
Initialize Git within your project folder.
Intellij delete project code#
Git doesn't care if your code works, but it's good practice to only commit functional code. You can run your code if you like, to ensure that it compiles. Just copy and paste the contents of one of your Java exercises into the new file. The contents of this file aren't important, but we want to practice adding files to your repository. In the Project Structure panel, right-click on the src folder and create a new Java Class. The "root" folder of this project will therefore be /Users/yourname/Desktop/Practice01, or using the ~ "home" shortcut, ~/Desktop/Practice01. Name it Practice01, Practice02, and so on, as you repeat this exercise. Create a new IntelliJ project.įirst, open IntelliJ and create a new project on your desktop. You don't have to memorize each command - that's what cheat sheets are for! - but rather, focus on understanding their relationships to the files on your computer, your development environment (IntelliJ), and GitHub. Repeat this exercise a few times, until you're comfortable. Even if you are comfortable with your Git workflow, you should go through this and understand what is happening - and more specifically, where on your computer's hard drive and on GitHub it is happening. This exercise is a straightforward recipe for starting a new IntelliJ project, adding a code file, and marrying a local Git repository to a remote GitHub repository. For the things we have to learn before we can do them,