2017-08-07 17 views

答えて

-1

使用このコード:

import * as Git from 'nodegit'; 

let repo: Git.Repository = await Git.Repository.open("path to the repo"); 

let currentBranch: Git.Reference = await repo.getCurrentBranch(); 

let currentBranchName: string = currentBranch.shorthand(); 
関連する問題