Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:centro:servizos:gitlab [2018/05/24 14:08] fernando.guillenen:centro:servizos:gitlab [2018/05/24 17:32] (current) fernando.guillen
Line 35: Line 35:
  
   - Install the ''git-lfs'' client, available in the ''git-lfs'' package in the CITIUS Ubuntu 14.04 or [[https://packagecloud.io/github/git-lfs/install|here]] for other distros.   - Install the ''git-lfs'' client, available in the ''git-lfs'' package in the CITIUS Ubuntu 14.04 or [[https://packagecloud.io/github/git-lfs/install|here]] for other distros.
-  - No directorio do repositorio, iniciar o LFS: ''git lfs install'' +  - Inside the repository directory install LFS: ''git lfs install'' 
-  - Indicar os arquivos que serán manexados co LFS (poden usarse comodíns): ''git lfs add <nowiki>"*.ova"</nowiki>'' +  - Specify which files are going to be managed with LFS (wildcards can be used): ''git lfs add <nowiki>"*.ova"</nowiki>'' 
-  - Engadir os arquivos a commits, da forma habitual: ''git add file.ova; git commit -m "Added big file"'' +  - Add the files to commits as usual: ''git add file.ova; git commit -m "Added big file"'' 
-  - LFS só funciona a través de HTTPS, non de SSH. Se estás a utilizar o //remote// por SSH, tes que engadir tamén o de HTTPS con outro nome antes de facer //push//, por exemplo: ''git remote add origin-https <nowiki>https://gitlab.citius.usc.es/grupo/proxecto.git</nowiki>'' +  - LFS only works using HTTPS, not SSH. If using //remote// through SSH, then HTTPS has to be added with a different name before doing //push//, for example: ''git remote add origin-https <nowiki>https://gitlab.citius.usc.es/grupo/proxecto.git</nowiki>'' 
-  - Por último, fai un //push// ó //remote// HTTPS: ''git push origin-https master''+  - Finally make a //push// to //remote// HTTPS: ''git push origin-https master''
  
-Para clonar o repositorio, tamén hai que facer pasos adicionais:+To clone the repository there are also additional steps:
  
-  - Facer o //clone// da maneira habitual por HTTPS: ''git clone <nowiki>https://gitlab.citius.usc.es/grupo/proxecto.git</nowiki>'' +  - Do the //clone// as usual using HTTPS: ''git clone <nowiki>https://gitlab.citius.usc.es/grupo/proxecto.git</nowiki>'' 
-  - Cambiar ó directorio do repositorio e obter os arquivos do LFS: ''git lfs fetch''+  - Change the repository's directory and get the files from the LFS: ''git lfs fetch''
  
  
-===== Problemas e preguntas frecuentes =====+===== Problems and frequent questions =====
  
-==== Ó facer un push, recibo o seguinte erro: "error: RPC failed; result=22, HTTP code = 411" ====+==== When making a push the following error appears: "error: RPC failed; result=22, HTTP code = 411" ====
  
-Se recibes o ''HTTP code = 411'', precisas configurar o comando git para aumentar o tamaño do buffer HTTP:+If you see error ''HTTP code = 411'', you need to configure the git command to increase the HTTP buffer size:
  
 <code>git config --global http.postBuffer 524288000 # permite ata 500MB</code> <code>git config --global http.postBuffer 524288000 # permite ata 500MB</code>
  
-Se recibes o ''HTTP code = 413'', é porque o push é demasiado grandeO servidor acepta push de ata 70MB por HTTP e calquera push maior dará ese erroSe precisas facer pushes maiores, tes que usar SSH cun par de chaves en vez de HTTP.+If revciving ''HTTP code = 413'', it is because push is too bigServer accepts HTTP pushes to 70MB, more than that will produce an errorIf you need to do bigger pushes you will have to use SSH with a pair of keys instead of HTTP. 
  
-==== Ó clonar o repositorio, recibo o seguinte erro: "Agent admitted failure to sign using the key." ==== +==== When cloning the repository I see the following error: "Agent admitted failure to sign using the key." ==== 
- +If the SSH key is correctly configured in the server but you have just created it and never tried to use itthen execute the following command to add it to the local authentication agent:
-Se tes a chave SSH correctamente configurada no servidoracabas de creala e nunca a probaches, debes executar no teu equipo o seguinte comando para engadila ó axente de autenticación local:+
  
 <code>ssh-add</code> <code>ssh-add</code>