Friday, January 27, 2012

SCP excluding .git & other dot files/folders

Quick command to scp your git repo to your server without copying .git & other dot files/folders:
scp -r [!.]* sandeep@server:/path/to/docroot

You can use this hack to store stuff in your repo (in dot files/folders) that you don't want to deploy to your production server. 

No comments: