This commit is contained in:
Mr. Is 2016-08-03 18:24:11 -04:00
parent 44e08686c5
commit ce5b3f81f7

View File

@ -84,35 +84,45 @@ $ gogs repo create Gophers/wheres-waldo --desc='awesome stuff' --private
$ gogs repo create where-waldo -r origin $ gogs repo create where-waldo -r origin
# [Aliases] for create. # [Aliases] for create.
$ gogs repo [create|new|c|n] $ gogs repo [create|new|c|n]
# [Options] for create. ```
[-d | --desc] # Description [Options] for create.
[-p | --private] # Make repo private - [-d | --desc] # Description
[-r | --add-remote] # Add newly created gogs repo as a remote to your current git dir, initalizing git if necessary - [-p | --private] # Make repo private
- [-r | --add-remote] # Add newly created gogs repo as a remote to your current git dir, initalizing git if necessary
```bash
# Migrate: # Migrate:
$ gogs repo migrate <myusername or my org's username>/mirror-mirror https://github.com/gogits/gogs.git $ gogs repo migrate <myusername or my org's username>/mirror-mirror https://github.com/gogits/gogs.git
[-m | --mirror] # Make it a mirror of the original. # [Aliases] for migrate
[-p | --private] # Make it private. $ gogs repo [migrate|m]
```
[Options] for migrate
- [-m | --mirror] # Make it a mirror of the original.
- [-p | --private] # Make it private.
```bash
# List basic: # List basic:
$ gogs repo list # Get all yo repos. $ gogs repo list # Get all yo repos.
# [Aliases]
$ gogs repo [list|l]
```
```bash
# Search basic: # Search basic:
$ gogs repo search waldo # Search public repos for keyword 'waldo'. $ gogs repo search waldo # Search public repos for keyword 'waldo'.
# Search fancy: # Search fancy:
$ gogs repo search waldo --limit 1 --user thatguy $ gogs repo search waldo --limit 1 --user thatguy
# [Aliases] for search. # [Aliases] for search.
$ gogs repo [search|find|s|f] $ gogs repo [search|find|s|f]
# [Options] for search. ```
[-l | --limit] # Limit results [Options] for search.
[-u | --user] # By user, required if you want to search private repos - [-l | --limit] # Limit results
- [-u | --user] # By user, required if you want to search private repos
```bash
# Destroy basic: # Destroy basic:
$ gogs repo destroy irstacks my-exterminable-repo $ gogs repo destroy irstacks my-exterminable-repo
$ gogs repo destroy irstacks/my-other-exterminable-repo $ gogs repo destroy irstacks/my-other-exterminable-repo
# [Aliases] for destroy. # [Aliases] for destroy.
$ gogs repo [destroy|delete|d|rid] $ gogs repo [destroy|delete|d|rid]
```
```bash
# Help?! # Help?!
# Add --help after any command to see what's up, ie. # Add --help after any command to see what's up, ie.
$ gogs --help $ gogs --help