diff --git a/apps/sparo-lib/src/cli/commands/checkout.ts b/apps/sparo-lib/src/cli/commands/checkout.ts index d542b6e..5aad10d 100644 --- a/apps/sparo-lib/src/cli/commands/checkout.ts +++ b/apps/sparo-lib/src/cli/commands/checkout.ts @@ -237,6 +237,9 @@ export class CheckoutCommand implements ICommand { this._gitService.executeGitCommand({ args: ['branch', branch, `${remote}/${branch}`] }); + this._gitService.executeGitCommand({ + args: ['remote', 'set-branches', '--add', remote, branch] + }); } const branchExistsInLocal: boolean = Boolean(