Connect PhpStorm with Bitbucket help needed please

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
Hello

Preface: I am very new to all this, been dipping my toes in the php water for a while now and finally feel I am ready for the next step, time to give my bootstrap projects some life!

Okey so I purchased JetBrains PhpStorm and now have it installed on both the laptop and on the desktop, I am completely new to the world of IDE's I used brackets for everything. Thus, I have a few questions that would be appreciated if I can get some help on.

Question 1:

So I registered an account on bitbucket since it is private if my understanding is correct, I have a github account as well, but I see on PhpStorm that I can select Github straight so that should be easy, however I see now reference to Bitbucket, can someone please guide me how to get this badboy connected.

Question 2:

I have used the following setup for everything I do, but I want to know how a workflow and setup looks like using a fully fledge IDE now.

I did the following:

I have WAMP and inside the Root folder (www) I have a "0-Projects" folder where I keep all my different websites and then I have an active website/Project directly inside that root(www) folder that I work with and preview on http:localhost/ and when I am done with the website I will move it out of root(www) and into the 0-Projects folder.

So I load www into brackets and then I have my files there and go about things.

Now with this IDE do I still need WAMP and go about things that way?

I guess my question here is how does a typical PhpStorm workflow/setup look like?


======

Here is an example of what my file structure inside WAMP with brackets looks like:

2016-04-11_19-39-07.png
 
Last edited:

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
Visit the PhpStorm website for documentation / videos / etc. that should answer your questions - and a lot more besides:
https://www.jetbrains.com/phpstorm/documentation/

Yea no feel free to send a direct link if you find it thou, also that's just one Question.

Besides the Bitbucket Plugin mentioned in those videos works on version 8 we are on version 15 now.

I'd like to do this the right way, by having a clear answer from people here actually using it.
 

_kabal_

Executive Member
Joined
Oct 24, 2005
Messages
5,923
Right click -> Git Bash here

$ git clone git://bitbucket.org/name/repo
$ git add awesome-service.php
$ git commit -m "first version of this awesome service"
$ git push origin master

That's the right way to integrate git into your workflow
 

DA-LION-619

Honorary Master
Joined
Aug 22, 2009
Messages
13,777
Right click -> Git Bash here

$ git clone git://bitbucket.org/name/repo
$ git add awesome-service.php
$ git commit -m "first version of this awesome service"
$ git push origin master

That's the right way to integrate git into your workflow

Now you've done it.
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
Right click -> Git Bash here

$ git clone git://bitbucket.org/name/repo
$ git add awesome-service.php
$ git commit -m "first version of this awesome service"
$ git push origin master

That's the right way to integrate git into your workflow
Yeah you're messing with his karma; he has already stated previously he is CLI / Terminal adverse
 

rward

Senior Member
Joined
Oct 26, 2007
Messages
865
[)roi(];17416580 said:
Yeah you're messing with his karma; he has already stated previously he is CLI / Terminal adverse

Once you've done the git init then PHP storm picks it up and does an auto configure
 

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
Right click -> Git Bash here

$ git clone git://bitbucket.org/name/repo
$ git add awesome-service.php
$ git commit -m "first version of this awesome service"
$ git push origin master

That's the right way to integrate git into your workflow

I know how do that, that's what I do with my wamp + brackets combo.

But I took the money to buy a decent IDE hoping it will make silly things like this a bit easier like the ftp remote connection I now have in Phpstorm I was hoping the bitbucket repositories would be a similar way and have me move away from the command line for stuff like this.
 

_kabal_

Executive Member
Joined
Oct 24, 2005
Messages
5,923
All-in-one solution does not exist. Just accept this. IDEs are awesome, for development. For "devops", not so much imo. Use tools that will make you more efficient, in the medium to long term. Time has value. If you learn to walk with a limp, it is hard to lose it.

Seriously though. Git CLI specifically has, IMO, large benefits over a GUI. The biggest one is transparency and understanding. Which ultimately brings you closer to mastering your tools. Also, as a thumb suck, it is probably 3x quicker to do things. [key][tab][key][tab]... is obviously going to be quicker than [move mouse][click][some keys][click][move mouse][click]...

Ultimately do what you want. I will leave these posts here for other beginners to maybe find, and send them down the "correct" path, if that is what they want
 
Last edited:

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
All-in-one solution does not exist. Just accept this. IDEs are awesome, for development. For "devops", not so much imo. Use tools that will make you more efficient, in the medium to long term. Time has value. If you learn to walk with a limp, it is hard to lose it.

Seriously though. Git CLI specifically has, IMO, large benefits over a GUI. The biggest one is transparency and understanding. Which ultimately brings you closer to mastering your tools. Also, as a thumb suck, it is probably 3x quicker to do things. [key][tab][key][tab]... is obviously going to be quicker than [move mouse][click][some keys][click][move mouse][click]...

Ultimately do what you want. I will leave these posts here for other beginners to maybe find, and send them down the "correct" path, if that is what they want

I disagree. Otherwise why would that functionality exist why would bit bucket devote time to make extentions for IDE's.

I do not believe one have to go about old ways when there are modern alternatives.

My git kraken setup is perfect for bit bucket and my github desktop client is marvelous.

And the build in github functionality in JetBrain products are light-years ahead of what I did using bash wamp, Filezilla and brackets
 

_kabal_

Executive Member
Joined
Oct 24, 2005
Messages
5,923
Oh, you think the CLI is the "old way"..... That explains it then.
 
Last edited:

Thor

Honorary Master
Joined
Jun 5, 2014
Messages
44,236
[)roi(];17416854 said:
Clear signs you're a newbie... drown the f..ker

Oh, you think the CLI is the "old way"..... That explains it then.

Right I have bit bucket working no thanks to anyone here.

Guess that's just the dev mentality these days.

Won't bother any of you again.
 
Top