Skip to content

Commit d54339b

Browse files
committed
Add current branch name example to readme
1 parent 852ffda commit d54339b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,12 @@ gulp.task('clean', function() {
303303
});
304304
});
305305

306+
// Get the current branch name
307+
308+
git.revParse({args:'--abbrev-ref HEAD'}, function (err, branch) {
309+
console.log('current git branch: ' + branch);
310+
});
311+
306312
// Run gulp's default task
307313
gulp.task('default',['add']);
308314
```

0 commit comments

Comments
 (0)