Changes between Version 2 and Version 3 of WikiStart


Ignore:
Timestamp:
01/25/17 08:54:10 (7 years ago)
Author:
Anke Visser
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v2 v3  
    1 == Documentation ==
    2 https://trac.version.fz-juelich.de/
     1== JSC Gitlab Server ==
    32
    4 == SVN Access ==
     3https://gitlab.version.fz-juelich.de
     4
     5== Git Large File Storage (LFS) ==
     6
     7Without LFS
     8- every git repository contains the complete history of all files including every version of big binaries
     9- cloning such a repository requires to download all these binaries in all versions
     10- bad performance of Git repositories larger than 1GB
     11With LFS
     12- same git commands can be used
     13- only pointers to the binary data are stored in the repository, the binaries ares stored on a separate disk on the server
     14- only one version of large binaries has will be downloaded, if the repository is cloned
     15
     16On the JSC gitlab server, a single file may not exeed the size of 50Mb, otherwise the push will be rejected:
     17
    518{{{
    6 svn list https://svn.version.fz-juelich.de/gitlab
     19> git push origin master
     20Counting objects: 5, done.
     21Delta compression using up to 8 threads.
     22Compressing objects: 100% (5/5), done.
     23Writing objects: 100% (5/5), 553 bytes | 0 bytes/s, done.
     24Total 5 (delta 3), reused 0 (delta 0)
     25remote: b0fd97d641cf2db0129faee2c4eeee768a9169ac..b6e4e93d5ec12229d42dd120548afe42183801d9 1048576
     26remote:
     27remote: -------------------------------------------------------------------------------------------------------
     28remote: Your push was rejected because it contains files larger than 50 MB.
     29remote: You might want to consider using git-lfs instead (see https://trac.version.fz-juelich.de/gitlab/wiki/).
     30remote: -------------------------------------------------------------------------------------------------------
     31remote:
     32remote: Offending files:
     33remote:  - bigFile.avi
     34remote:
     35To ssh://git@gitlab.version.fz-juelich.de:10022/user/test.git
     36 ! [remote rejected] master -> master (pre-receive hook declined)
    737}}}
    838
    9 == Trac Documentation ==
     39Please keep in mind, that deleting previously committed large file doesn't solve the problem. The file stays in history.
     40You have to revert the change.
    1041
    11  * TracGuide --  Built-in Documentation
    12  * [http://trac.edgewall.org/ The Trac project] -- Trac Open Source Project
    13  * [http://trac.edgewall.org/wiki/TracFaq Trac FAQ] -- Frequently Asked Questions
    14  * TracSupport --  Trac Support
     42=== Prequisites ===
    1543
    16 For a complete list of local wiki pages, see TitleIndex.
     44- check if git lfs client is installed {{{git lfs version}}} [[br]]
     45  otherwise install [https://github.com/git-lfs/git-lfs/wiki/Installation lfs client]
     46- setup git lfs: {{{git lfs install}}}
    1747
     48=== First usage ===
     49This command specifies the files which should use LFS and also creates or updates .gitattributes.
     50{{{
     51git lfs track "*.bin" # or git lfs track myBigFile.bin
     52}}}
     53
     54'''Important:''' Add .gitattributes to the repository.
     55{{{
     56git add .gitattributes
     57}}}
     58
     59Now you may use git like before to add a file to the repository.
     60{{{
     61git add myBigFile.bin
     62git commit -m "Add binary file using lfs"
     63git push origin master
     64}}}
     65
     66=== Further commands ===
     67
     68If you have many LFS objects, cloning with git lfs clone is faster.
     69{{{
     70git lfs clone
     71}}}
     72
     73If you have already checked out a repository and want to replace the object links (e.g. ExamplePointerFile) with the binary contents, use {{{git lfs pull}}} or
     74{{{
     75git lfs fetch # downloads objects with batch mode
     76git lfs checkout # changes objects to binary files
     77}}}
     78
     79Show files which use LFS
     80{{{
     81git lfs ls-files
     82}}}
     83
     84=== Documentation ===
     85- https://github.com/git-lfs/git-lfs/wiki
     86- https://git-lfs.github.com/
     87
     88=== Support ===
     89For further questions, send a mail to
     90version-admin.jsc@fz-juelich.de