![]() ![]() If you click the button, you can do a lot of useful things: switch to another branch, create a new one, rename an existing one, and so on. Whatever follows "Git:" is the current branch. In the lower right corner, there is a button labeled Git: master. When a project has many branches, commits, and users, you need to search separately by branch, user, and date: The last thing I want to explain before we start is how to understand which branch we are in. And in the middle, we have the final merged result. If you double-click on the file that was changed during this commit, we will see how the conflict was resolved: We note that on the left and the right we have the two versions of the same file that needed to be merged into one. We also see that a conflict was resolved there. Moreover, you can see the actual changes. If you click on a commit, you can see in the right corner all the information about the commit: all its changes and metadata. For example, you can see that a new branch was created with a added header to txt commit, which was then merged into the master branch. ![]() There is a certain visualization that helps us understand exactly how development has proceeded. Here you can find all local changes and get a list of commits (analogous to "git log"). Next you'll see this beautiful screen: Now that we figured out cloning, you can take a look around.įirst glance at IntelliJ IDEA as a Git UITake a closer look at the cloned project: you can already get a lot of information about the version control system.įirst, we have the Version Control pane in the lower left corner. Since there is no build system and that's beyond the scope of this article, we select Create project from existing sources : You will be prompted to create an IntelliJ IDEA project. Open IntelliJ IDEA and select "Get from Version Control": To clone a project from GitHub, you need to copy the project link and pass it to IntelliJ IDEA: Clone my repository and do everything locally without the ability to push the whole thing to the server.If you already have a GitHub account and want to push something later, it is better to fork the project and clone your own copy.Clone the project locallyThere are two options here: Don't be alarmed: you just need to either not switch to the new UI, or look for them. UPDATE: At the time of publication, the new GitHub UI will be available, and some icons will not be where they are shown in the article. Let's work with the demo project that I used for the article about Git. Allocate an hour of personal time to achieve complete mastery.This will help ensure that everything is set up and ready to go. Read, follow along, and understand my article about Git.If you know a better way than what I will describe in the article, write it in the comments and we'll discuss it. There are several ways to solve any given problem in IntelliJ IDEA. But that was right up to the moment when I started using Git in IntelliJ IDEA.įrom the outset, I want to say that I am describing my personal experience. After all, everything was clear as it was. Today I will show you how to do it all in IntelliJ IDEA.Īt the beginning of my journey as a developer, I used the command line and thought that I didn't need a GUI for this. In the article about Git, I described how to work with Git on the command line. Today's article is the logical extension of my article on Git. ![]() Sticking to the established tradition, I greet you as future senior software engineers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |