Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

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. 

Wednesday, March 25, 2009

Moving on...

cd my-free-software-projects
rm -fr .svn
rm -fr CVS
git init
git add .
git commit
git remote add github http://github.com/sandeepshetty
git push github master