Skip to content

Instantly share code, notes, and snippets.

Avatar

Adrian Cid Almaguer adrian-cid

View GitHub Profile
View gist:f91a3c74af3f4397dcac160949436a02
# From tag to HEAD
git log --pretty=format:"%s" 8.x-1.0-alpha4..HEAD
# Between two tags
git log --pretty=format:"%s" 7.x-1.0-beta1..7.x-1.0
# From tag to the start commit
git log --pretty=format:"%s" 7.x-1.0-beta1
@adrian-cid
adrian-cid / gist:f564c4048b4f1733b918992ed6fe18b5
Created Sep 21, 2016
Tagging a specific previous commit point in git
View gist:f564c4048b4f1733b918992ed6fe18b5
Use command:
git tag v1.0 ec32d32
Where v1.0 is the tag name and ec32d32 is the commit you want to tag
Once done you can push the tags by:
git push origin --tags
@adrian-cid
adrian-cid / gist:cb01529e0176b2374c7782cf56d6efe8
Last active Sep 6, 2016
Getting all properties values of a Javascript Object
View gist:cb01529e0176b2374c7782cf56d6efe8
//data is the object
var val = '';
var obj = data;
var obj_name = 'data';
Object.keys(obj).forEach(function (key) {
val += obj_name + '.' + key + ' = ' + obj[key] + "\n";
});
console.log(val);