MCPcopy Index your code
hub / github.com/changesets/changesets / push

Function push

packages/release-utils/src/gitUtils.ts:16–35  ·  view source on GitHub ↗
(
  branch: string,
  {
    force,
    includeTags,
    cwd,
  }: { force?: boolean; includeTags?: boolean; cwd: string }
)

Source from the content-addressed store, hash-verified

14};
15
16export const push = async (
17 branch: string,
18 {
19 force,
20 includeTags,
21 cwd,
22 }: { force?: boolean; includeTags?: boolean; cwd: string }
23) => {
24 await execWithOutput(
25 "git",
26 [
27 "push",
28 "origin",
29 `HEAD:${branch}`,
30 includeTags && "--tags",
31 force && "--force",
32 ].filter((x): x is string => !!x),
33 { cwd }
34 );
35};
36
37export const switchToMaybeExistingBranch = async (
38 branch: string,

Callers

nothing calls this directly

Calls 1

execWithOutputFunction · 0.90

Tested by

no test coverage detected