- Open PhpStorm and create a new project named thetradingpost.
- Once the project has loaded, open the terminal (Option + fn + F12) and enter
git init
- Click VCS from the menu bar and select Enable Version Control Integration. Select git from the drop down list and click OK.
- In the terminal type:
git remote add origin ssh://username@server-ip/var/repos/thetradingpost.git
- Then enter:
git pull origin master
- Enter your password
- Open the Terminal
- Type:
ssh username@server-ip
- Enter password
- Once on the server, type:
cd /var/repos/thetradingpost.git
- Enter:
git push github master