I'm a PHP newbie working with a tutor. He set me up with an account on Github, PHPstorm, XAMPP, and Github desktop. However, ever since. Anhand eines WordPress-Projektes zeige ich Euch, wie Ihr in wenigen einfachen Schritten ein git-Repository, das Ihr auf github oder bitbucket gehostet habt.
Then delete reg 'HKEY_CURRENT_USERSOFTWAREJavaSoftPrefsjetbrainsphpstormedca4a4e' |
@echooff |
REM Delete eval folder with licence key and options.xml which contains a reference to it |
for%%Iin ('WebStorm', 'IntelliJ', 'CLion', 'Rider', 'GoLand', 'PhpStorm', 'Resharper', 'PyCharm') do ( |
for /d %%ain ('%APPDATA%JetBrains%%I*') do ( |
rd /s /q '%%a/eval' |
del /q '%%aoptionsother.xml' |
) |
) |
reg delete 'HKEY_CURRENT_USERSOFTWAREJavaSoftPrefsjetbrainsphpstormedca4a4e' /f |
commented Mar 10, 2021
commented Mar 11, 2021
- Video tutorial on the Git integration in PHPStorm. I walk you through all the need to know features that come with PHPStorm.This video is part of an article.
- Use the GitHub issue tracker Next to those actions, PhpStorm provides full support for the Git VCS like commit and update file/directory or an entire project, changelists, revision support and so forth. More on these features can be found in our earlier VCS overview post.
commented Mar 17, 2021
Phpstorm Github Pull Request
Thank you. Now I'm able to use PyCharm & DataGrip after resetting evaluation. |
commented Apr 12, 2021
commented Apr 14, 2021
Open notepad => copy this code on notepad and save file as reset.bat |
If you don't use Git and Jetbrains' fabulous editor, PhpStorm, this article probably won't interest you. Likewise, if you use both and are used to using the Git features inside PhpStorm, this won't be much use to you, although you can do other things in Git Bash like using SSH connections, copying files, running Grep, or issuing Composer or Perl commands. Of course you can also use it as a terminal.
I'm used to using the Git Bash command line tool. I trust it more than I do any IDE-based Git tool. The command line tool also allows you to quickly and safely perform the more complex operations necessary to recover from the disasters that will eventually strike when you're working in the wee hours of the morning.
Of course I already had a Quick Start icon for the Bash shell at the bottom of my screen, so I could launch it any time, but it's much more convenient to issue the commands in PhpStorm where the files you've been working on are visible. On Windows, another huge plus is that you have full copy and paste capability both ways (something I didn't get in the Bash window launched from the Windows desktop). You can copy your commit message and paste it into your changelog, for example (or vice versa).
It took me most of an evening and a lot of trial and error to make this work and Google wasn't much help, so I thought I'd document it here for others. These steps are for PhpStorm 2016.2 with XAMPP on localhost under Windows 10, so you'll have to modify them somewhat if you're on another platform. This assumes that you have a Git client and the Git Bash shell. I use the shell installed with Git (installed from here). A similar process should work with cygwin or other shells.
The Terminal
I kept playing with various PhpStorm settings for Command Line Tools, since that's what I think of Git Bash as (it looks and acts like the Windows cmd prompt). The fact is, though, that it's a terminal client and that's how PhpStorm thinks of it. To implement it, you have to go to:
Once you're there, here are the steps necessary to enable Git Bash in the Terminal dialog.
Put the following line in the Shell Path field (adjust as necessary for your platform):
If you are using the 64-bit version of Git, the path is different:
Don't forget the quotation marks. They're necessary for PhpStorm to distinguish between the file and the options. Note that login
has two dashes, but i
has only one. You can add -v
if you like verbose output from Bash. The -login
tells Bash to run it's configuration files (more on that in the next article), and the -i
tells Bash that you want interactive mode.
As an alternative, you can click on the browse icon and navigate to the sh.exe
file, wherever it is, but be sure to add the command-line options after the path.
I left all the checkboxes checked and it seems to work fine. When you're done, click on 'Apply' and then on 'OK'. You may have to restart PhpStorm for this all to take effect.
Use the 'Test' button to make sure you have the path correct.
If you haven't already, you also need to set the path to Git. Go to:
Set the path to:
or this if you're using the 64-bit version of Git:
As with setting up the shell, you can also use the browse button. Quotation marks are not necessary here, since there are no command-line options.
Launching the Terminal
Github Phpstorm License
At the bottom of the PhpStorm screen (bottom left on my version) you should see a 'Terminal' button. When you click on it, you should see a window with the Bash prompt, followed by a cursor. If the cursor is white, your typing will be ignored until you click in the window — then it will turn black. If you don't see that 'Terminal' button, you can use the View -> Toolbars menu option or Alt-F12 to bring you the terminal window.
I prefer to have the window floating. You can select that option from the little gear icon at the upper right of the window. Clicking on the minimize icon next to the gear icon, or on the 'Terminal' button will hide the window. If you click on the red X, it will close your terminal session and you'll lose your place. You can also have multiple Bash windows open by clicking on the +
symbol, which is handy if you want to repeat actions in different directories, especially since you can use copy and paste.
SUBSCRIBE to receive notifications of new blog posts.
For information on how to use MODX to create a web site (and other topics), see my main web site, Bob's Guides, or better yet, buy my book: MODX: The Official Guide.
Github Phpstorm Key
Looking for high-quality, MODX-friendly hosting? As of May 2016, Bob's Guides is hosted at A2 hosting. MODX will work fine at most hosting services, but having a MODX-friendly host can prevent a lot of frustration. Better yet, the A2 Solid-State-Drive servers are configured to handle the many Ajax and database calls made by MODX — especially the MODX Manager. My Manager runs about four times as fast as it did on my previous host. I particularly recommend the Swift package with the Performance Plus option.