Quick command to scp your git repo to your server without copying .git & other dot files/folders:
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.
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:
Post a Comment