Page cover image

Git command

Overview

tw git is a command-line tool that provides functionality to open project related issues, pull requests and other pages related to GitHub repositories.

Usage

tw git [options] [command]

Options

  • -h, --help: Display help for the command.

Commands

  • open [options]: Open GitHub repository related pages.

Command: open

#The following 2 commands are equivalent
tw git open [options] 
tw git [options]

#Open the address of the current branch
tw git

Options

  • -a, --actions: Open the Actions page on GitHub (default: false).

tw git -a
  • --author: Open the author's profile page (default: false).

tw git --author
  • -c, --commit [hash]: Open the commit page for a given SHA hash.

tw git -c
  • --committer: Open the committer's profile page (default: false).

tw git --committer
  • -f, --file <filePath>: Open the page for a specific file.

tw git -f README.md
  • --find: Open the search file page (default: false).

tw git --find
  • -i, --issue: Open the issues list page (default: false).

tw git -i
  • -m, --main: Open the main branch page (default: false).

tw git -m
  • -p, --pull-request: Open the pull request list page (default: false).

tw git -p
  • --pull [branch]: Open the page for creating a pull request. The branch defaults to the current branch (default: false).

tw git --pull
  • -r, --release: Open the release page (default: false).

tw git -r
  • -s, --settings: Open the settings page (default: false).

tw git -s
  • --star: Open the star page (default: false).

tw git --star
  • -h, --help: Display help for the command.

tw git -h

最后更新于