1
0

More than 1 year has passed since last update.

gitで社内サーバのリポジトリをクローンする手順

Last updated at Posted at 2022-03-07

#社内サーバにあるrepo.gitをクローンする手順

Win + R → CMD

コマンドプロンプト上で、クローン先ローカルディレクトリに移動
または、クローン先ディレクトリをエクスプローラで開いて右クリック→Git Bash Here

git clone [サーバ上の共有リポジトリのファイルパス]

##具体例
###CMDの場合(バックスラッシュ=円マークが使えるので、エクスプローラ上でリモートリポジトリをShift+右クリックし「パスをコピー」して
それをコマンドプロンプト上にペーストするだけ。)

git clone "\\fs\sub-business\products\apps\repo.git"

###Git Bashの場合(バックスラッシュではなくフォワードスラッシュを使う)

git clone "//fs/sub-business/products/apps/repo.git"
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0