Introduction to Version Control in IntelliJ IDEA (middle)

Since IntelliJ IDEA supports a lot of version control tools, but we can only use two or three, so in this blog post, we mainly introduce the configuration methods of SVN, Git and GitHub.

SVN

If you want to use SVN in IntelliJ IDEA, you need to install an SVN client or a graphical tool such as TortoiseSVN in advance. For Windows systems, it is recommended to install TortoiseSVN; for Mac systems, it is recommended to install CornerStone.

1

  • Note 1: Use command line client, use the command line client;
  • Note 2: Clear Auth Cache, clear the cache.

As shown in the figure above, after checking  the option shown in Note 1  , it means using the SVN command line client. Here, it is recommended that the path of SVN be selected according to the path after our installation, otherwise IntelliJ IDEA may not recognize SVN, so that Report: Cannot run program "svn"This kind of error; after we use SVN for a period of time, if you find that some problems with SVN cannot be solved, you can consider clicking   the clear cache button shown in Note 2 .

Git

If you want to use Git in IntelliJ IDEA, you also need to install the Git client in advance, but in the process of installing the Git client, we are free to choose whether to use the Windows command line tools at the same time. In addition, if you have not installed Git, you can refer to " Git Installation Process and Steps " for specific installation steps.

2

As shown in the figure above, if we have installed the Git client in advance, it will Path to Git executableautomatically locate the Git executable file in it, and then click Test:

3

As shown in the figure above, if it is displayed Git executed successfully, it means that the distributed version control system Git is available.

GitHub

For a high-level programmer who is inspired to make a breakthrough in the Internet wave, if he doesn't know GitHub, it seems a little too low! If you know GitHub before, well, I feel normal; if you don't know GitHub before, then I really recommend you to learn about GitHub through the " Easiest GitHub Tutorial in History ", even if you register an account and never use it again Well, at least we can calmly (pretend) and (force) say, "I was thinking back then, I also had XXX, but only XXX", right? It's not that when others ask about GitHub, we'll be dumbfounded!

5

  • Note 1: Create API Token, create API Token;
  • Note 2: Login to GitHub, log in to the GitHub account;
  • Note 3: Test, test whether the connection is successful.

As shown in the figure above, in IntelliJ IDEA, support for GitHub is provided. When we log in to the GitHub account, click Testto test:

6

As shown in the figure above, it shows Connection successfully for user guobinhitthat we have connected this IntelliJ IDEA to the account of guobinhitthe GitHub account!


———— ☆☆☆ ——Back-  >The easiest IntelliJ IDEA tutorial in history<- Contents——  ☆☆☆ ————

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325810180&siteId=291194637