Git入門 git cloneの使い方のサンプル

環境
Windows 10 Pro 64bit
Git 2.41.0

書式
1.リポジトリを指定する
git clone リポジトリ
cloneの後に、gitのリポジトリを指定します。

2.ディレクトリを指定する
git clone [リポジトリ] [ディレクトリ名]

操作例
1.GithubのリポジトリのURLをコピーします。
ターミナルやコマンドプロンプトから下記のようにgit cloneを実行します。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
git clone https://github.com/xxx/sample.git
git clone https://github.com/xxx/sample.git
git clone https://github.com/xxx/sample.git

2. ダウンロードしたディレクトリにcdコマンドで移動します。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
cd sample
cd sample
cd sample

 

 

GitLab

Posted by arkgame