- go to github.com
- click the plus sign on the navbar
- select new repository from the dropdown
- fill in repository name (project-name) and description fields
- select public
- select initialize with readme
- select Apache license 2.0
- click create new file
- name file .gitignore
- add file content
.DS_Store
/.idea
- commit the new file
- click green button (clone or download)
- copy the SSH address
- open phpstorm
- In the welcome to PHPStorm screen click check out from version control
- select git (not Github)
- paste ssh address from Github
- click the clone button then click yes to checkout from version control
- ssh into the server*
- (ubuntu and mac) open Bash (terminal)
- type ssh [email protected]
- (windows) open putty
- select bootcamp-coders and click open
- type cd public_html hit enter
- type mkdir project-name hit enter
- type exit hit enter
- go to Build, Execution, Deployment -> Deployment
- click +
- name = project-name
- type = sftp
- click ok
- host = bootcamp-coders.cnm.edu
- path = /home/username/public_html/project-name
- username = (your cnm username)
- authtype = OpenSSh config and authentication agent
- web server root URL = https://bootcamp-coders.cnm.edu/~username/project-name/
- click test connection button
- type / in deployment path on server
- click use this server as default button
- click apply then OK