Git

Git clone & change project folde

2020-12-07  本文已影响0人  JaedenKil

Normally we just use git clone 'repoUrl'.
Scenario:
I want to clone a project, say "ExoPlayer", but there is already a project named "ExoPlayer", so I want to clone this project and rename folder to ‘ExoPlayerTest":

git clone repoUrl ExoPlayerTest

Refer to git-clone:

<directory>
The name of a new directory to clone into. The "humanish" part of the source repository is used if no directory is explicitly given (repo for /path/to/repo.git and foo for host.xz:foo/.git). Cloning into an existing directory is only allowed if the directory is empty.

上一篇下一篇

猜你喜欢

热点阅读