English 中文(简体)
改变吉特储存库的下载途径
原标题:Change Git repository download path on Mac


I often use git from Terminal on Mac to download some repositories and then use it.

当我使用这一指挥时:

git clone git://git repository URL
repositories are downloaded in my Start folder (name account folder e.g. Matthew, if the name of my Mac account is Matthew).

I d like to change this folder where repositories are downloaded.
How can I do this when I download a new repo?

Thanks,
Matthew

最佳回答

在你目前居住的道路上,将掩饰存放在新创建的名录上(带<代码>pwd)。 如果您的<代码>cd进入一条不同的轨道,则该名录将放在该网站上。

或者,你可以指定一个目录作为<条码>git Clone指挥的一部分。 例如:

git clone git://<git repo url> /path/to/cloned/repo

见<条码>git 帮助克隆<>。

问题回答

暂无回答




相关问题
How to upload and download file from a server using C#

I am developing a webpage in that the user can download their Resume for Edit. So I have a link to download the article. I use the following code for download. DataTable dt = user.getUserDetails(2); ...

Detecting PDF Download

I have recently added functionality for generating pdf reports to a web application. However the reports can be quite large and take some time to show the pdf download dialog. I want to show a spinner ...

Writing file to users giving sporadic error in IE

I have a very interesting issue with only specific IE implementations. I have an ASPX page that is used to write files down to the user, as part of the process the page uses the following code to ...

PHP - List of Excel files to download from Intranet Site?

I have a intranet site running PHP 5 that needs to list a folder containing only Excel files. Ideally the user needs to be able to input some search criteria (ie date) and the files would be filtered ...

Determine total size of SVN directory/trunk

Is there a way to count/calculate the total size of a svn directory if you were to checkout a revision? I have limited internet downloads so I need to know how big something is before I go and ...

Scala and html: download an image (*.jpg, etc) to Hard drive

I ve got a Scala program that downloads and parses html. I got the links to the image files form the html, Now I need to transfer those images to my hard drive. I m wondering what the best Scala ...

Downloading file with wxHTTP?

Im really stumped. Im using the wxHTTP class in wxWidgets to try and download two files. The first request succeeds but the second one fails when wxHTTP->GetInputStream is called. Between downloads, ...

热门标签