mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 14:02:08 +02:00

* pages*: improve page descriptions * ical: improve page description * cockpit-desktop: remove unneeded word from page description * nc: improve description wording --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
17 lines
844 B
Markdown
17 lines
844 B
Markdown
# git force-clone
|
|
|
|
> Get the basic functionality of `git clone`, but if the destination Git repository already exists it will force-reset it to resemble a clone of the remote.
|
|
> Part of `git-extras`.
|
|
> More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-force-clone>.
|
|
|
|
- Clone a Git repository into a new directory:
|
|
|
|
`git force-clone {{remote_repository_location}} {{path/to/directory}}`
|
|
|
|
- Clone a Git repository into a new directory, checking out an specific branch:
|
|
|
|
`git force-clone -b {{branch_name}} {{remote_repository_location}} {{path/to/directory}}`
|
|
|
|
- Clone a Git repository into an existing directory of a Git repository, performing a force-reset to resemble it to the remote and checking out an specific branch:
|
|
|
|
`git force-clone -b {{branch_name}} {{remote_repository_location}} {{path/to/directory}}`
|