Add examples for creating .gitignore files
This commit is contained in:
parent
922a157206
commit
95ca152fea
1 changed files with 6 additions and 0 deletions
|
|
@ -45,6 +45,12 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
|
|||
|
||||
# View the Python gitignore template
|
||||
gh repo gitignore view Python
|
||||
|
||||
# Create a new .gitignore file using the Go template
|
||||
gh repo gitignore view Go > .gitignore
|
||||
|
||||
# Create a new .gitignore file using the Python template
|
||||
gh repo gitignore view Python > .gitignore
|
||||
`),
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue