-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Format fix of Synopsis in manuals #936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,85 +1,58 @@ | ||
| .\" generated with Ronn/v0.7.3 | ||
| .\" http://github.com/rtomayko/ronn/tree/0.7.3 | ||
| . | ||
| .TH "GIT\-ALIAS" "1" "October 2017" "" "Git Extras" | ||
| . | ||
| .\" generated with Ronn-NG/v0.9.1 | ||
| .\" http://github.com/apjanke/ronn-ng/tree/0.9.1 | ||
| .TH "GIT\-ALIAS" "1" "August 2021" "" "Git Extras" | ||
| .SH "NAME" | ||
| \fBgit\-alias\fR \- Define, search and show aliases | ||
| . | ||
| .SH "SYNOPSIS" | ||
| \fBgit\-alias\fR \fBgit\-alias\fR <search\-pattern> \fBgit\-alias\fR <alias\-name> <command> | ||
| . | ||
| \fBgit\-alias\fR | ||
| .br | ||
| \fBgit\-alias\fR <search\-pattern> | ||
| .br | ||
| \fBgit\-alias\fR <alias\-name> <command> | ||
| .SH "DESCRIPTION" | ||
| List all aliases, show one alias, or set one (global) alias\. | ||
| . | ||
| .SH "OPTIONS" | ||
| <search\-pattern> | ||
| . | ||
| .P | ||
| The pattern used to search aliases\. | ||
| . | ||
| .P | ||
| <alias\-name> | ||
| . | ||
| .P | ||
| The name of the alias to create\. | ||
| . | ||
| .P | ||
| <command> | ||
| . | ||
| .P | ||
| The command for which you are creating an alias\. | ||
| . | ||
| .SH "EXAMPLES" | ||
| Defining a new alias: | ||
| . | ||
| .IP "" 4 | ||
| . | ||
| .nf | ||
|
|
||
| $ git alias last "cat\-file commit HEAD" | ||
| . | ||
| .fi | ||
| . | ||
| .IP "" 0 | ||
| . | ||
| .P | ||
| Providing only one argument, \fBgit\-alias\fR searches for aliases matching the given value: | ||
| . | ||
| .IP "" 4 | ||
| . | ||
| .nf | ||
|
|
||
| $ git alias ^la | ||
| last = cat\-file commit HEAD | ||
| . | ||
| .fi | ||
| . | ||
| .IP "" 0 | ||
| . | ||
| .P | ||
| \fBgit\-alias\fR will show all aliases if no argument is given: | ||
| . | ||
| .IP "" 4 | ||
| . | ||
| .nf | ||
|
|
||
| $ git alias | ||
| s = status | ||
| amend = commit \-\-amend | ||
| rank = shortlog \-sn \-\-no\-merges | ||
| whatis = show \-s \-\-pretty=\'tformat:%h (%s, %ad)\' \-\-date=short | ||
| whois = !sh \-c \'git log \-i \-1 \-\-pretty="format:%an <%ae> | ||
| . | ||
| .fi | ||
| . | ||
| .IP "" 0 | ||
| . | ||
| .SH "AUTHOR" | ||
| Written by Jonhnny Weslley <\fIjw@jonhnnyweslley\.net\fR> | ||
| . | ||
| .SH "REPORTING BUGS" | ||
| <\fIhttps://github\.com/tj/git\-extras/issues\fR> | ||
| . | ||
| .SH "SEE ALSO" | ||
| <\fIhttps://github\.com/tj/git\-extras\fR> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,57 +1,42 @@ | ||
| .\" generated with Ronn/v0.7.3 | ||
| .\" http://github.com/rtomayko/ronn/tree/0.7.3 | ||
| . | ||
| .TH "GIT\-FORCE\-CLONE" "1" "October 2017" "" "Git Extras" | ||
| . | ||
| .\" generated with Ronn-NG/v0.9.1 | ||
| .\" http://github.com/apjanke/ronn-ng/tree/0.9.1 | ||
| .TH "GIT\-FORCE\-CLONE" "1" "August 2021" "" "Git Extras" | ||
| .SH "NAME" | ||
| \fBgit\-force\-clone\fR \- overwrite local repositories with clone | ||
| . | ||
| .SH "SYNOPSIS" | ||
| \fBforce\-clone \-\-help\fR \fBforce\-clone {remote_url} {destination_path}\fR \fBforce\-clone \-\-branch {branch_name} {remote_url} {destination_path}\fR | ||
| . | ||
| \fBforce\-clone \-\-help\fR | ||
| .br | ||
| \fBforce\-clone {remote_url} {destination_path}\fR | ||
| .br | ||
| \fBforce\-clone \-\-branch {branch_name} {remote_url} {destination_path}\fR | ||
| .SH "DESCRIPTION" | ||
| Provides the basic functionality of \fBgit clone\fR, but if the destination git repository already exists it will force\-reset it to resemble a clone of the remote\. | ||
| . | ||
| .P | ||
| Because it doesn\'t actually delete the directory, it is usually significantly faster than the alternative of deleting the directory and cloning the repository from scratch\. | ||
| . | ||
| .P | ||
| \fBCAUTION\fR: If the repository exists, this will destroy \fIall\fR local work: changed files will be reset, local branches and other remotes will be removed\. | ||
| . | ||
| .SH "PROCESS" | ||
| If \fBtarget\-directory\fR doesn\'t exist or isn\'t a git repository then the arguments will simply be passed through to \fBgit clone\fR\. | ||
| . | ||
| .P | ||
| If \fBtarget\-directory\fR exists and is a git repository then this will: | ||
| . | ||
| .IP "\(bu" 4 | ||
| .IP "\[ci]" 4 | ||
| Remove all remotes | ||
| . | ||
| .IP "\(bu" 4 | ||
| .IP "\[ci]" 4 | ||
| Set the origin remote to \fB{remote_url}\fR and fetch the remote | ||
| . | ||
| .IP "\(bu" 4 | ||
| .IP "\[ci]" 4 | ||
| Discover the default branch, if no branch was specified | ||
| . | ||
| .IP "\(bu" 4 | ||
| .IP "\[ci]" 4 | ||
| Check out the selected branch | ||
| . | ||
| .IP "\(bu" 4 | ||
| .IP "\[ci]" 4 | ||
| Delete all other local branches | ||
| . | ||
| .IP "" 0 | ||
| . | ||
| .SH "OPTIONS" | ||
| \fB{remote_url}\fR \- The URL for a git remote repository of which to make a clone\. \fB{destination_path}\fR \- A path to the local git repository location to clone into\. \fB\-\-branch {branch_name}\fR \- After cloning, checkout this branch\. | ||
| . | ||
| .SH "EXAMPLES" | ||
| \fBgit\-force\-clone \-b master git@github\.com:me/repo\.git \./repo_dir\fR | ||
| . | ||
| .SH "AUTHOR" | ||
| Written by Robin Winslow \fIrobin@robinwinslow\.co\.uk\fR\. | ||
| . | ||
| .SH "REPORTING BUGS" | ||
| \fIhttps://github\.com/tj/git\-extras/issues\fR | ||
| . | ||
| .SH "SEE ALSO" | ||
| \fIhttps://github\.com/tj/git\-extras\fR |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.