EEECS Logo
Self-Service Online

EEECS Git/GitLab Issues - Help

GIT Cheatsheet

A good single page PDF git cheatsheet is available - git-cheatsheet.pdf

cheatsheet

HTTPS workaround

HTTPS “Unable to get local issuer certificate” workaround:

  1. Open Git Bash
  2. Enter the following to ignore the SSL verify:


git config --global http.sslVerify false



If you are experiencing issues with Git/GitLab please check the following:

Account / Authentication Issues

  1. Check you can login to the GitLab web interface using your EEECS credentials at https://gitlab2.eeecs.qub.ac.uk
  2. If not - check your login credentials by logging in to https://selfservice.eeecs.qub.ac.uk
  3. Try resetting your EEECS password

Large Files causing server issues - check your gitignore setup

If you are getting an error 'send-pack: unexpected disconnect while reading sideband packet...' it is usually due to large files.

Make sure you are using a .gitignore file to exclude binaries, object code, build artifacts, video files etc. from versioning. There is a collection of .gitignore file templates for many different dev environments available at:

https://github.com/github/gitignore

A good gitignore setup will prevent this type of issue and make your use of git/gitlab much quicker and more efficient. Pick a template for your development environment as your starting point - they are available for C++, Java, Python, Unity, VisualStudio....

Switch from SSH to HTTPS to solve the unexpected disconnect errors

If you are still getting server disconnect errors it is usually due to large repositories. GitLab was designed for many small repositories usually under 1Gb in size and there can be significant performance issues with larger repos.

Change your Git remote URL from SSH to HTTPS with the git remote set-url command.

https://devconnected.com/how-to-change-git-remote-origin/

HTTPS handles large data transfers better than SSH. Though SSH is preferred where possible for additional security.

TIP: To avoid having to enter your password everytime with HTTPS you can store or caching your credentials for https. See
How to fix git always asking for user credentials