Skip to content

Instantly share code, notes, and snippets.

View istumpf's full-sized avatar

Ivan istumpf

View GitHub Profile
@istumpf
istumpf / squash-commits.md
Last active February 22, 2021 18:18 — forked from jbub/squash-commits.sh
git squash last two commits into one

call git rebase with the number of commits to be squashed

git rebase --interactive HEAD~2

the list of commits will be displayed

pick b76d157 b
pick a931ac7 c

mark the commits to be squashed in this case squash c into b

const azure = require('azure-storage');
const { readConfig } = require('./config');
const config = readConfig();
const blobService = azure.createBlobService(config.azure.connectionString);
const container = config.azure.storageContainer;
const deleteFromStorage = async ({ caminho, cb }) => {
blobService.deleteBlobIfExists(
container,