Foreword:
When submitting our code using git, which is often used in projects, vscode and webstorm are two tools that are used a lot. Here we will once again sort out their specific uses and their respective advantages!
1. Initialize the pull project
Personal habit, I won’t talk about the usage of the framework here, the original one is the simplest
git clone+项目地址
2. Open the project
vscode
Download the git plug-in: Git Graph, local record plug-in: Local History
*****Personally, I feel it is suitable for multiple projects and single projects.
(When there are multiple projects, you only need to open their common parent)
左上角的:文件-》打开文件夹,
webstorm
*****Personal feeling is suitable for a single project
The parent of multiple projects is not recommended because the small black box embedded in his cmd requires you to switch to different project paths yourself.
左上角:文件-》打开
3. Add locally: git add
vscode
源代码管理-》找到你的项目-》看看更改内容
webstorm
找你的提交/version co...(版本控制) 位置在侧边、底部左手边
4. Local submission: git commit
vscode
1. Click this ➕. After success, you can see the temporary changes.
2. You can add your notes, [feat]/[fix] + your changes, then pull down the arrow and expand it to see that submission means only mentioning local, and submission and push means local + remote.
webstorm
Check the files you want to submit. Unlike vscode, webstorm has to put them in the staging area first. Just check the content you want to submit. Then write your notes below. There are also submission and submit and push.
5. Remote submission: git push
vscode
1. You can see the submission and push in step 4
2. If you choose Submit, then when you want to send remotely, there is a push in More
webstorm
1. You can see the submission and push in step 4
2. If you choose submission, email any file, find git, and then push/push directly.
6. View branch details
vscode
点击图上这个图标
webstorm
直接找git模块就行
7. Merge content from other branches:
vscode
On the git record, find the content you want to merge, click on it, then right-click and find the following
webstorm
Click on the log, find the corresponding bar, right-click, find the git branch corresponding to this record, and then choose to merge this branch into your local branch
8. View local modified files
vscode
You need to download the above plug-in and then reopen it to see it. There is this in the lower left corner. First click on a file you want to see and then open LOCAL HISTORY.
webstorm
Just click on a file, right-click, and you can see the local history.
9. Their respective advantages
vscode
Open source and scalable
webstorm
All basic plug-ins are included, so you don’t need to download too many additional plug-ins.