Home > Web Front-end > HTML Tutorial > APICloud Studio 2 tutorial using GIT-SVN technology

APICloud Studio 2 tutorial using GIT-SVN technology

零下一度
Release: 2017-06-24 13:16:20
Original
5389 people have browsed it

Changes in client code management tools: from SVN to GIT

As of now, the new version of APICloud Studio 2 is still in the public beta period. The code management client of APICloud Studio 2 has been changed from SVN to GIT. Company The code server is still an SVN server, and the front end uses GIT as the client. Some children must have guessed it - APICloud Studio 2 uses GIT-SVN technology to manage code.

This important feature cannot be I think it has become a major shortcoming of APICloud Studio 2. Almost every day, people ask questions like "Why does submitting to the code have no effect?" on the forum. We try to answer it every day on the forum, QQ, or through email. Developers have such questions about code submission. When they find problems, they mainly focus on their daily usage habits of code management tools. People who have experience in using GIT can easily get started after basically reading the documentation or simple tips; More developers who use SVN to manage code, although they can finally submit the code to the APICloud cloud, may still not really understand: Why do I have to make a local submission before synchronizing the code to the cloud.

Use How "difficult" is it to submit code in APICloud Studio 2?

Right-click a modified file or folder and select Git -> Git add + commit

git 提交命令

In the new input box that appears at the bottom, enter a description to record what has been modified, the motivation for the modification, etc., then press ctrl/cmd + s to save

APICloud Studio 2 tutorial using GIT-SVN technology

# #Verify whether local submission is successful through local code submission log

To view the log, you can call up the command input box by ctrl/cmd + shift + p, then enter log and select the Git Plus: Log command.

git 日志

On the local submission record page of the project, if you see the one you just submitted, it means that the local submission has been successful.

APICloud Studio 2 tutorial using GIT-SVN technology

Right-click the project root directory--> Code Management--> Sync from the cloud--> Sync to the cloud

We recommend that you do a "synchronize to the cloud" before each "synchronization to the cloud" " operation, similar to update first, then submit in SVN. During cloud synchronization, there will be log output on the bottom console; when cloud synchronization is completed, there will be a prompt notification in the upper left corner.

APICloud Studio 2 tutorial using GIT-SVN technology ##Right-click cloud compilation--> Code, view code submission record

APICloud Studio2 integrates various functions of the cloud. We can directly right-click the project and enter its corresponding cloud interface. At this time we see that we just The modifications have been synchronized to the cloud.

APICloud Studio 2 tutorial using GIT-SVN technologyIsn’t it very convenient and amazing? You can actually use GIT to manage SVN code. Feelings about GIT-SVN technology If you are interested, why not search it quickly?!

Why not continue to use SVN as the default code management tool of APICloud Studio 2?

First of all, it needs to be explained: The code management function is just One of the basic functions provided by APICloud Studio2, and there is no restriction that you must use APICloud Studio2 to manage code before you can continue to use other functions of APICloud Studio2. If you still have a soft spot for SVN, or the project is too busy these days, you can use various A third-party code management tool to manage your APICloud application. The SVN address and password can be obtained from the cloud console.

APICloud Studio 2 tutorial using GIT-SVN technologyThen, there is the core code management of APICloud Studio2 Why was the tool changed to GIT? Of course because it is more efficient and has more potential! In this way, it may be a bit abstract, let’s give a specific example. You can take a look at 2.1.4. There is a very important but not very eye-catching one. Update: The local code time machine function is launched, which supports manual backup and automatic backup of local uncommitted code when synchronizing with the cloud. It is based on the stash command of GIT. It can be done as long as your local .git directory is not artificially destroyed. Once the uncommitted code is lost due to some accident, you can use the "local code time machine" function to retrieve it. Of course, you don't have to worry about the size of the .git directory, because local backup is not a simple zip compression. Interested You can study the git stash command carefully.

Summary

GIT is so easy to use, why do some people still don’t know how to use it to submit code? Of course it is the difference in personal code management tool usage habits. However, I can tell you responsibly that familiar Downloading GIT will not only help you better develop APICloud applications, but also help you learn and work in all aspects in the future. Try to look at the world from a different angle and you will find new differences~

The above is the detailed content of APICloud Studio 2 tutorial using GIT-SVN technology. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template