To use WebStorm to submit code, you need to follow the following steps: Associate the remote warehouse. Create a local copy. Modify the file. Staging changes. Submit changes. Push changes. Create a pull request (optional).
How to submit code using WebStorm
To submit code in WebStorm, you need to follow the following steps:
1. Associate the remote warehouse
<code>VCS -> Import Version Control -> GitHub</code>
Enter the URL of the remote warehouse or select an existing warehouse.
2. Create a local copy
<code>VCS -> Git -> Create Branch...</code>
Enter the branch name and choose to associate with the remote warehouse.
3. Modify the file
Modify or update the file to be submitted.
4. Stage changes
<code>VCS -> Git -> Add</code>
Select the changes you want to commit and click "Add".
5. Commit changes
<code>VCS -> Git -> Commit</code>
Enter the commit message and click "Commit".
6. Push changes
<code>VCS -> Git -> Push</code>
Select the branch you want to push and click "Push".
7. Create a pull request (optional)
If the branch submitted to the remote warehouse is not the master branch, you need to create a pull request to merge the changes into in the main branch.
<code>VCS -> Git -> Pull Request...</code>
Select the source branch and target branch, and click "Create".
Tips:
Use shortcut keys to speed up the process of submitting code:
Ctrl Alt K
is used to stage changesCtrl Alt M
is used to commit changesCtrl Alt U
is used to push changesThe above is the detailed content of How to submit code in webstorm. For more information, please follow other related articles on the PHP Chinese website!