Contents tagged with git

  • Pro Tip: Using Node.js's child_process with Gulp and Visual Studio's Task Runner Explorer

    A quick tip - had a Gulp task set up to call Git from the command line, get the latest commit hash and append it to some html files, and while it worked on someone else's Mac, it didn't on my machine. gulp.task('tag', function(){ shell('git describe --dirty', function(err,stdout) { if(err) { throw new Error(err); } gulp.src(['index.html'], { root: base }) .pipe( … more

  • Stories From The Git Frontline (or, how to revert / undo a merge that's already pushed)

    So, this happened: was working on a different branch did a merge back into master too early mistook git revert for "take me back to this point" instead of what it actually does (undo one specific commit) The tree then ended up looking like: a revert i don't actually mean to have a merge of a bunch of stuff i dont want a previous good merge before my merge the commit which i mistakenly … more

  • 1