gh_feature_branch: Make a feature branch on a github fork.

View source: R/gh.R

gh_feature_branchR Documentation

Make a feature branch on a github fork.

Description

gh_feature_branch takes a feature name and creates a branch on the user's fork (createing this if necessary from an "owner/repo:branch".

It will

  1. Fork to your account (if not already existing)

  2. Clone to your machine (if not already cloned)

  3. Move to preferred location

  4. Create the requested fix/feature branch and switch to it

You can then 5. Edit, commit, push, repeat: success! 6. Squash if necessary 7. pull request from your/branch to upstream/main using gh_open_PR_url if you wish.

Usage

gh_feature_branch(
  feature = "fix-piglet",
  base = "textmatelives/textmate:main",
  head_owner = "tbates",
  local_path = "~/bin/tm/bundles/"
)

Arguments

feature

= "fix-piglet"

base

= "textmatelives/textmate:main"

head_owner

= "tbates"

local_path

= "~/bin/tm/bundle/"

Value

  • status

See Also

  • gh_open_PR_url()

Other github: gh_message_search(), gh_open_PR_url(), xgh_check_base_name(), xgh_get_current_branch()

Examples

## Not run: 
	gh_feature_branch("fix/font_issue", base = "textmatelives/textmate:main")

## End(Not run)

umx documentation built on Oct. 11, 2026, 5:07 p.m.