git init
or
git clone url
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var del = require('del'); | |
| var uglify = require('gulp-uglify'); | |
| var gulpif = require('gulp-if'); | |
| var exec = require('child_process').exec; | |
| var notify = require('gulp-notify'); |
| If you use Git on you development machine, it's good to keep a remote backup in case your dev machine fails. | |
| Step 1: Create the empty bare repo on your network drive(backup folder). | |
| so you first have to clone it: in the original repo do: | |
| $ git clone --bare /path/of/the/exsisting/repo | |
| This will copy your repository data to the network folder. | |
| Step 2: In the version controlled folder, add a new remote. |