Skip to content

Instantly share code, notes, and snippets.

ThrashAbaddon / git-squash.bat
Created Apr 25, 2017 — forked from jotaelesalinas/git-squash.bat
Easy git-squash (merges last N commits in one)
View git-squash.bat
@echo off
if "%1"=="" goto blank
echo Squashing %1 commits...
git reset --soft HEAD~%1
git log --format=%%B%%n --reverse "HEAD@{1}" -n %1 > _msg.txt
git commit -t _msg.txt
del _msg.txt
echo Done!
ThrashAbaddon / 0_reuse_code.js
Created May 16, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console