Skip to content

Instantly share code, notes, and snippets.

Tif Pun TifPun

  • Esri
  • California | Hong Kong
Block or report user

Report or block TifPun

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TifPun
TifPun / Git cheatsheet.md
Last active Mar 30, 2017
Git cheatsheet
View Git cheatsheet.md

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 Oct 7, 2016
zip files and folders using node-archiver.js
View 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
You can’t perform that action at this time.