Как подключиться ко встроенной БД gitlab и посмотреть активные коннекты

cd /root
docker-compose exec web /bin/bash
su - gitlab-psql
psql -h /var/opt/gitlab/postgresql/ gitlabhq_production
SELECT current_setting('max_connections');
SELECT * FROM pg_stat_activity;

GIT fatal: inflateInit: out of memory

На одном из серверов при попытке пушнуть взятый под git код возникла ошибка
Delta compression using up to 24 threads.<br>fatal: inflateInit: out of memory (no message)

Помогло сокращение трэдов упаковки

git config --global pack.threads 1

Using vimdiff as git diff tool

git config --global diff.tool vimdiff
git config --global difftool.prompt false
git config --global alias.d difftool

Typing git d yields the expected behavior, type :wq in vim cycles to the next file in the changeset.

Как правильно перемещать новую ветку на удаленный git репозитиорий и с него

Чтобы закинуть новую ветку на удаленный репозиторий:

git push origin newbranch

Чтобы забрать ветку, не забываем сделать 

git pull

а затем

git checkout -b newbranch origin/newbranch