Skip to content

Instantly share code, notes, and snippets.

View ThrashAbaddon's full-sized avatar

Daniel ThrashAbaddon

  • Zagreb
  • 16:39 (UTC +01:00)
View GitHub Profile
@ThrashAbaddon
ThrashAbaddon / git-squash.bat
Created April 25, 2017 13:46 — forked from jotaelesalinas/git-squash.bat
Easy git-squash (merges last N commits in one)
@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
ThrashAbaddon / 0_reuse_code.js
Created May 16, 2016 20:44
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