Skip to content

Instantly share code, notes, and snippets.

View liginv's full-sized avatar
🎯
Get Set Code

Ligin Vellakkad liginv

🎯
Get Set Code
View GitHub Profile
@liginv
liginv / gulpfile.js
Created March 11, 2017 08:06 — forked from mlouro/gulpfile.js
gulpfile.js with browserify, jshint, libsass, browserSync for livereload, image optimization and system notifications on errors
'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');

Git Cheat Sheet

Commands

Getting Started

git init

or

git clone url

@liginv
liginv / git-remote-mirror
Last active September 10, 2016 08:28
Add a remote mirror on a network drive from a local Git repository (*nix)
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.