The first thing to do is to install Git on the remote server.
Once you do that the rest of the process is split into three sections:
- Server set-up
- Local set-up (push commits)
- Server (pull commits)
sudo chown -R $(whoami) /usr/local/ | |
sudo chown -R $(whoami):admin /usr/local | |
`Can't chown /usr/local in High Sierra` | |
sudo chown -R $(whoami) $(brew --prefix)/* |
# to list all ports that are used | |
sudo netstat -ntlp | grep LISTEN | |
# you can obtain a specific port using the following command | |
sudo netstat -ntlp | grep :8080 | |
# when you execute the command above you will see something like that | |
tcp 0 0 0.0.0.0:27370 0.0.0.0:* LISTEN 4394/skype | |
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 2216/dnsmasq | |
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 4912/cupsd |
#!/bin/sh | |
# Configure homebrew permissions to allow multiple users on MAC OSX. | |
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
# allow admins to manage homebrew's local install directory | |
chgrp -R admin /usr/local | |
chmod -R g+w /usr/local | |
# allow admins to homebrew's local cache of formulae and source files | |
chgrp -R admin /Library/Caches/Homebrew |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"