Here is an easy tip on how to use IP address to prevent users from a certain country or region from visiting your site.
- Go to this web site: http://www.ip2location.com/free/visitor-blocker
Generate the .htaccess code
Copy it to your .htaccess file
allow from all
deny from 126.96.36.199/24
deny from 188.8.131.52/23
deny from 184.108.40.206/21
deny from 220.127.116.11/19
deny from 18.104.22.168/24
deny from 22.214.171.124/23
Here are some of my favorite Git aliases (shortcuts).
git config –global alias.s ‘status -s’
git config –global alias.c ‘commit -am’
git config –global alias.l ‘log –oneline –decorate’
In order to do a
git push to a working copy that is running live, you need to configure it to allow it:
SSH into the server,
cd into the directory where your Git working copy lives, and enter this:
git config receive.denyCurrentBranch ignore
Now from your local Git working copy, you can simply
git push origin master
To push the changes to the remote. Then you need to checkout the files on the remote.
Source: Stack Overflow