relizy / getGitUpstream
Function: getGitUpstream()
getGitUpstream(
cwd):Promise<GitUpstream|null>
Defined in: src/core/git.ts:367
Resolve the upstream of the current branch. Returns null on a detached HEAD or when the branch has no upstream configured.
Parameters
cwd
string
Returns
Promise<GitUpstream | null>