
- Intellij git add remote repository how to#
- Intellij git add remote repository install#
- Intellij git add remote repository Patch#
If there are more changes than that, you can move up and down by clicking on these buttons and because I refactored that variable, I'll jump to all the changes that have been made.


It shows me differences between the version that's in the repository that has the variable s1 and the version I'm currently working with which has the variable string1. To see what changes have been made, I'll select the file in the Version Control window and then press ctrl + d on Windows or cmd + d on Mac. There's a change to the file and so now it can be committed again to the repository. And notice that the file Calculator.java is now listed again in the Version Control window. I just pressed Shift + F6 to do that and as I make the change, changes are being made to the underlying file on disk. I'll go to my Calculator class and I'm going to refactor s1 and name it string1. I'll talk about branches in more detail in another video. I'll go to the menu and choose VCS, Git, and then select Branches and this shows me that I have a single branch named master and that's the standard name for a brand new Git branch. And now all of my files have been added to my Git repository. I'll click the Commit Changes button again and I'll Commit. That actually generates yet another file called vcs.xml and I want to commit that too, so I'll click Yes, and now I only show that file in my Version Control window.
Intellij git add remote repository Patch#
And Create Patch is an advanced feature that I won't show here. Commit and Push is used when you're working with a remote repository. And then under the Commit button's menu, I have options of Commit, Commit and Push, and Create Patch. That's called the Commit Changes button and I'll see a listing of all the files that can be committed and I need to enter something called a Commit Message. I'll open up the list of available files and this lists all files that have been added to the repository but have not yet been committed. I'll select View, Tool Windows, and then Version Control, which is now enabled. To commit the files to the repository, I could go to the menu and select VCS, Git, and now that menu has changed, and then I could say Commit Directory or I could go to the Version Control tool window. I'll right-click and scroll down to the Git submenu and I'll choose Add. So now that I know the Git repository has been created, I can add files to the repository. I'll list the contents of that directory and show that there's a variety of files and folders and these are always the same for Git repositories. git, lower case, and that takes me down into that hidden directory. And once again, I won't see any special directories there. To see it, I'll go to my terminal window and then I'll type dir on Windows or ls on Mac. Now you won't see it here in the Project window and that's because it's hidden. That creates a new directory under your project directory. I'll pull down this list and show the various systems that IntelliJ IDEA can work with and I'll choose Git and click OK. From the menu, I'll select VCS, Enable Version Control Integration.
Intellij git add remote repository how to#
I'm going to show you here how to create a local repository, also known as a repo and I'm starting with the project CreateRepo. You can maintain multiple versions, and even multiple branches.

Intellij git add remote repository install#
Once you've install Git on your development system, you can use it to manage your projects.
