Create an empty git repo or reinitialize an existing one
$ git initCreate an empty git repo or reinitialize an existing one
$ git initFirst of all you need to be able to run MAMP in port 80. This is a "heat check" if you don't have any process jamming http ports. You can check it like this:
sudo lsof | grep LISTEN
If you do happen to have any process with something like this *:http (LISTEN), you are in trouble. Before with adventure check if it isn't MAMP itself (yeah, you should close that beforehand)
ps <pid of that process>
If you don't see MAMP, you are in good hands, I have just the thing for you:
| server { | |
| listen 80; | |
| server_name localhost; | |
| root /Users/YOUR_USERNAME/Sites; | |
| access_log /Library/Logs/default.access.log main; | |
| location / { | |
| include /usr/local/etc/nginx/conf.d/php-fpm; | |
| } |
| # fetch the changes from the remote | |
| git fetch origin | |
| # show commit logs of changes | |
| git log master..origin/master | |
| # show diffs of changes | |
| git diff master..origin/master | |
| # apply the changes by merge.. |