Skip to content

Instantly share code, notes, and snippets.

View TifPun's full-sized avatar

Tif Pun TifPun

  • Esri
  • California | Hong Kong
View GitHub Profile
@TifPun
TifPun / Git cheatsheet.md
Last active March 30, 2017 21:23
Git cheatsheet

Checkout branch without detaching from head

git fetch
git --track branchName origin/branchName

Merge from branchA to branchB locally

git checkout branchB
git merge branchA
@TifPun
TifPun / zip files and folders using node-archiver.js
Last active October 7, 2016 22:27
zip files and folders using node-archiver.js
/*
Pre-requisite: npm --save archiver
Suppose the folder `/Users/x/baseFolder` has the following structure:
/Users/x/baseFolder
| __ dir1
| __ file1.txt
| __ file2.txt
| __ dir2
| __ file3.txt