git-branchless-submit(1)

πŸ“¦
version 0.11.1 Β· 2 versions
, in arch rolling, nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is the git-branchless-submit(1) page from the General Commands Manual, and it’s serving submit β€” the command whose whole job is: Push commits to a remote ✨ no cap.

πŸŽ€ SYNOPSIS πŸŽ€

submit [--hidden] [-F|--forge] [-c|--create] [-d|--draft] [-m|--message]
[-j|--jobs] [-s|--strategy] [-n|--dry-run] [-h|--help] [REVSETS]

πŸ¦‹ DESCRIPTION πŸ¦‹

Push commits to a remote. That’s the function, bestie β€” your commits get sent to the remote, and that’s the whole vibe. πŸ’…

🌸 OPTIONS 🌸

  • --hidden β€” include hidden commits in the results of evaluating revset expressions. Sneaky little commits get to show up too πŸ‘€
  • -F, --forge <FORGE_KIND> β€” the Git hosting provider to use, called a β€œforge”. If you don’t provide one, it’ll try to automatically detect the forge used by the repository. If no forge can be detected, it falls back to the branch forge 🫢

Possible values:

  • branch β€” force-push branches to the default push remote. You can configure the default push remote with git config remote.pushDefault <remote> πŸ’–
  • github β€” force-push branches to the remote and create a pull request for each branch using the gh command-line tool. WARNING: likely buggy! πŸ’€
  • phabricator β€” submit code reviews to Phabricator using the arc command-line tool ✨
  • -c, --create β€” if there is no associated remote commit or code review object for a given local commit, create the remote object by pushing the local commit to the forge. It’s giving β€œmake it exist” energy πŸ”₯
  • -d, --draft β€” if the forge supports it, create code reviews in β€œdraft” mode πŸŽ€
  • -m, --message <MESSAGE> β€” if the forge supports it, an optional message to include with the create or update operation. Say it with your chest, bestie πŸ’Œ
  • -j, --jobs <NUM_JOBS> β€” if the forge supports it, how many jobs to execute in parallel. The value 0 indicates to use all CPUs ⚑
  • -s, --strategy <EXECUTION_STRATEGY> β€” if the forge supports it and uses a tool that needs access to the working copy, what kind of execution strategy to use 🧚

Possible values:

  • working-copy β€” Default. Run the tests in the working copy. This requires a clean working copy. This is useful if you want to reuse build artifacts in the current directory 🌈
  • worktree β€” run the tests in a separate worktree (managed by git-branchless). This is useful if you want to run tests in parallel, or if you want to run tests on a different commit without invalidating build artifacts in the current directory, or if you want to run tests while your working copy is dirty 🌸
  • -n, --dry-run β€” don’t push or create anything. Instead, report what would be pushed or created. (This may still trigger fetching information from the forge.) A little peek behind the curtain, no commitment πŸ‘‘
  • -h, --help β€” print help (see a summary with -h) 🫢
  • [REVSETS] [default: stack()] β€” the commits to push to the forge. Unless --create is passed, this will only push commits that already have associated remote objects on the forge. iykyk 😌

and that’s the tea: submit in git-branchless-submit(1), General Commands Manual edition β€” the footer gives us no date, just this cute little sign-off, so mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from