Skip to content

Instantly share code, notes, and snippets.

View kewang's full-sized avatar
🎯
Focusing

Kewang kewang

🎯
Focusing
View GitHub Profile
@kewang
kewang / git-overwrite-branch.sh
Created November 14, 2016 10:31 — forked from brev/git-overwrite-branch.sh
Git overwrite branch with another branch
# overwrite master with contents of seotweaks branch (seotweaks > master)
git checkout seotweaks # source name
git merge -s ours master # target name
git checkout master # target name
git merge seotweaks # source name
@kewang
kewang / 0_reuse_code.js
Last active August 29, 2015 14:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console