Skip to content

Commit

Permalink
Add current branch name example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlacy committed Dec 6, 2017
1 parent 852ffda commit d54339b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,12 @@ gulp.task('clean', function() {
});
});

// Get the current branch name

git.revParse({args:'--abbrev-ref HEAD'}, function (err, branch) {
console.log('current git branch: ' + branch);
});

// Run gulp's default task
gulp.task('default',['add']);
```
Expand Down

1 comment on commit d54339b

@tbenyon
Copy link

@tbenyon tbenyon commented on d54339b Dec 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

Please sign in to comment.