diff options
author | Marin Jankovski <marin@gitlab.com> | 2015-11-20 08:06:06 +0000 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2015-11-20 08:06:06 +0000 |
commit | 225bbf84edc2f809a9212379b5e527f14058d2b8 (patch) | |
tree | d638cdd1e285023b06297d0a828509eb99db4854 /doc | |
parent | a8e7bee3a6de05feaee2f276f6f7b35fbbd4b9e3 (diff) | |
parent | 91a76957e3d18e3cb89bc8320f8513e1002e551e (diff) | |
download | gitlab-ce-225bbf84edc2f809a9212379b5e527f14058d2b8.tar.gz |
Merge branch 'update-lfs-docs' into 'master'
Update LFS docs for cloning
Cloning the repo already downloads the LFS tracked files.
See merge request !1839
Diffstat (limited to 'doc')
-rw-r--r-- | doc/workflow/git_lfs.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/workflow/git_lfs.md b/doc/workflow/git_lfs.md index e1064051fe8..616a71522ae 100644 --- a/doc/workflow/git_lfs.md +++ b/doc/workflow/git_lfs.md @@ -55,7 +55,7 @@ In `config/gitlab.yml`: * When SSH is set as a remote, Git LFS objects still go through HTTPS * Any Git LFS request will ask for HTTPS credentials to be provided so good Git credentials store is recommended * Currently, storing GitLab Git LFS objects on a non-local storage (like S3 buckets) is not supported -* Git LFS always assumes HTTPS so if you have GitLab server on HTTP you will have to add the url to Git config manually (see #troubleshooting-tips) +* Git LFS always assumes HTTPS so if you have GitLab server on HTTP you will have to add the URL to Git config manually (see #troubleshooting-tips) ## Using Git LFS @@ -77,11 +77,10 @@ git commit -am "Added Debian iso" # commit the file meta data git push origin master # sync the git repo and large file to the GitLab server ``` -Downloading a single large file is also very simple: +Cloning the repository works the same as before. Git automatically detects the LFS-tracked files and clones them via HTTP. If you performed the git clone command with a SSH URL, you have to enter your GitLab credentials for HTTP authentication. ```bash git clone git@gitlab.example.com:group/project.git -git lfs fetch debian.iso # download the large file ``` |